Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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?
  • Loading branch information
ninsbl committed May 5, 2015
1 parent 3fcc101 commit 70d3907
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/plugins/processing/algs/r/RAlgorithm.py
Expand Up @@ -285,6 +285,8 @@ def getImportCommands(self):
commands.append('options("repos"="http://cran.at.r-project.org/")')

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

0 comments on commit 70d3907

Please sign in to comment.