From: pierre Date: Thu, 5 Sep 2024 14:25:00 +0000 (+0200) Subject: binary R packages for windows and Mac OS X-Git-Url: http://iramuteq.org/git?a=commitdiff_plain;h=60b1892e7bbd174fc768cca551258b1093de9111;p=iramuteq binary R packages for windows and Mac OS --- 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)