Skip to content

Commit

Permalink
[sextante] fixed R import bug
Browse files Browse the repository at this point in the history
  • Loading branch information
volaya committed Apr 17, 2013
1 parent d927756 commit cf8f8c3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/plugins/sextante/r/RAlgorithm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit cf8f8c3

Please sign in to comment.