From fe90546d2830e742238f731c6a43ae8748e086a0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org>
Date: Fri, 19 Feb 2021 14:23:58 +0100
Subject: [PATCH] Improve command suggestion for installing statistics package
 from Octave Forge
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

The “io” package is a dependency, hence must be explicitly installed first.

[skip ci]

(manually cherry picked from commit 75882bcc11ed12f0c1b29dc879b6a377392a0248)
---
 matlab/dynare_config.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/matlab/dynare_config.m b/matlab/dynare_config.m
index f071f7b8cc..692f319bd4 100644
--- a/matlab/dynare_config.m
+++ b/matlab/dynare_config.m
@@ -103,7 +103,7 @@ if isoctave
     if ~octave_ver_less_than('4.4') && ~user_has_octave_forge_package('statistics')
         % Our replacement functions don't work under Octave (because of gamrnd, see
         % #1638), hence the statistics toolbox is now a hard requirement
-        error('You must install the "statistics" package from Octave Forge, either with your distribution package manager or with "pkg install -forge statistics"')
+        error('You must install the "statistics" package from Octave Forge, either with your distribution package manager or with "pkg install -forge io statistics"')
     end
 else
     if ~user_has_matlab_license('statistics_toolbox')
-- 
GitLab