From 75882bcc11ed12f0c1b29dc879b6a377392a0248 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]
---
 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 a91d99bcbf..4d93908525 100644
--- a/matlab/dynare_config.m
+++ b/matlab/dynare_config.m
@@ -102,7 +102,7 @@ if isoctave
     % Our replacement functions don't work under Octave (because of gamrnd, see
     % #1638), hence the statistics toolbox is now a hard requirement
     if ~user_has_octave_forge_package('statistics')
-        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