Skip to content
Permalink
Browse files

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 70d390727c5c70d5e85eeeba35001bee611c705c
Showing with 2 additions and 0 deletions.
  1. +2 −0 python/plugins/processing/algs/r/RAlgorithm.py
@@ -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:

0 comments on commit 70d3907

Please sign in to comment.
You can’t perform that action at this time.