Skip to content

Commit 70d3907

Browse files
committedMay 5, 2015
Add .libPaths() to R scripts for Windows
Hopefully a more proper attempt to fix http://hub.qgis.org/issues/11603 directly in processing by means of providing an option to define a path for user libraries on MS Windows. Not sure if this could be useful for other OSes too?
1 parent 3fcc101 commit 70d3907

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎python/plugins/processing/algs/r/RAlgorithm.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,8 @@ def getImportCommands(self):
285285
commands.append('options("repos"="http://cran.at.r-project.org/")')
286286

287287
# Try to install packages if needed
288+
if isWindows():
289+
commands.append('.libPaths(\"' + str(RUtils.RLibs()).replace('\\','/') + '\")')
288290
packages = RUtils.getRequiredPackages(self.script)
289291
packages.extend(['rgdal', 'raster'])
290292
for p in packages:

0 commit comments

Comments
 (0)
Please sign in to comment.