From 60b1892e7bbd174fc768cca551258b1093de9111 Mon Sep 17 00:00:00 2001 From: pierre Date: Thu, 5 Sep 2024 16:25:00 +0200 Subject: [PATCH] binary R packages for windows and Mac OS --- checkinstall.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/checkinstall.py b/checkinstall.py index 7b8e51b..469edf5 100644 --- a/checkinstall.py +++ b/checkinstall.py @@ -223,9 +223,15 @@ Sans ces bibliothèques, IRamuteq ne fonctionnera pas. print(userdir) .libPaths """ - txt += """ - install.packages("%s", repos = "%s") - """ % (bib, self.pref.get('iramuteq','rmirror')) + if sys.platform in ['win32','darwin'] : + txt += """ + install.packages("%s", repos = "%s", type='binary') + """ % (bib, self.pref.get('iramuteq','rmirror')) + else : + txt += """ + install.packages("%s", repos = "%s") + """ % (bib, self.pref.get('iramuteq','rmirror')) + tmpscript = tempfile.mktemp(dir=self.TEMPDIR) with open(tmpscript, 'w') as f : f.write(txt) -- 2.7.4