From: pierre Date: Fri, 29 Jan 2021 09:10:25 +0000 (+0100) Subject: MacOS Big Sur and R > 4 under windows X-Git-Url: http://iramuteq.org/git?p=iramuteq;a=commitdiff_plain;h=abf9eaf0fcfc22aca1a1e164a6cfb602c6aed77b MacOS Big Sur and R > 4 under windows --- diff --git a/checkinstall.py b/checkinstall.py index e7dca8a..17d32fd 100644 --- a/checkinstall.py +++ b/checkinstall.py @@ -123,7 +123,7 @@ def FindRPAthWin32(): for progpath in progpaths : rpath = os.path.join(progpath, "R") if os.path.exists(rpath) : - for maj in range(2,4) : + for maj in range(2,6) : for i in range(0,30): for j in range(0,20): for poss in ['', 'i386', 'x64'] : @@ -138,6 +138,8 @@ def FindRPathNix(): BestPath='/usr/bin/R' elif os.path.exists('/usr/local/bin/R'): BestPath='/usr/local/bin/R' + elif os.path.exists('/Library/Frameworks/R.framework/Resources/bin/R') : + BestPath='/Library/Frameworks/R.framework/Resources/bin/R' return BestPath def RLibsAreInstalled(self) : @@ -148,7 +150,8 @@ def RLibsAreInstalled(self) : return True def CheckRPackages(self): - listdep = ['ca', 'rgl', 'gee', 'ape', 'igraph','proxy', 'wordcloud', 'irlba', 'textometry'] + listdep = ['ca', 'rgl', 'gee', 'ape', 'igraph','proxy', 'wordcloud', + 'irlba', 'textometry', 'intergraph', 'sna', 'network'] nolib = [] i=0 dlg = wx.ProgressDialog("Test des librairies de R", "test en cours...", maximum = len(listdep), parent=self, style=wx.PD_APP_MODAL | wx.PD_AUTO_HIDE | wx.PD_ELAPSED_TIME | wx.PD_CAN_ABORT) @@ -174,12 +177,12 @@ def CheckRPackages(self): %s Sans ces bibliothèques, IRamuteq ne fonctionnera pas. - + - Vous pouvez installer ces bibliothèques manuellement : Cliquez sur Annuler Lancez R Tapez install.packages('nom de la bibiothèque') - + - ou laisser IRamuteq les installer automatiquement en cliquant sur VALIDER . Les bibliothèques seront téléchargées depuis le site miroir de R %s. """ % (txt, self.pref.get('iramuteq','rmirror'))