mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
13 lines
594 B
Diff
13 lines
594 B
Diff
diff --git a/r/RAlgorithm.py b/r/RAlgorithm.py
|
|
index 8b2ea4b..b8e9b35 100644
|
|
--- a/r/RAlgorithm.py
|
|
+++ b/r/RAlgorithm.py
|
|
@@ -276,6 +276,7 @@
|
|
commands.append('options("repos"="http://cran.us.r-project.org")')
|
|
rLibDir = "%s/rlibs" % SextanteUtils.userFolder().replace("\\","/")
|
|
if not os.path.isdir(rLibDir): os.mkdir(rLibDir)
|
|
+ commands.append('.libPaths("%s")' % rLibDir )
|
|
commands.append(
|
|
'tryCatch(find.package("rgdal"), error=function(e) install.packages("rgdal", lib="%s"))' % rLibDir)
|
|
commands.append("library(\"rgdal\")");
|