Skip to content
Permalink
Browse files

[sextante] fixed R import bug

  • Loading branch information
volaya committed Apr 17, 2013
1 parent d927756 commit cf8f8c3c35464520bede422b914ead2eba213e73
Showing with 3 additions and 3 deletions.
  1. +3 −3 python/plugins/sextante/r/RAlgorithm.py
@@ -281,10 +281,10 @@ def getImportCommands(self):
commands.append(
'tryCatch(find.package("rgdal"), error=function(e) install.packages("rgdal", dependencies=TRUE, lib="%s"))' % rLibDir)
commands.append("library(\"rgdal\")");
if not self.useRasterPackage or self.passFileNames:
commands.append(
#if not self.useRasterPackage or self.passFileNames:
commands.append(
'tryCatch(find.package("raster"), error=function(e) install.packages("raster", dependencies=TRUE, lib="%s"))' % rLibDir)
commands.append("library(\"raster\")");
commands.append("library(\"raster\")");

for param in self.parameters:
if isinstance(param, ParameterRaster):

0 comments on commit cf8f8c3

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