Skip to content
Permalink
Browse files

Merge pull request #3103 from rldhont/bugfix_processing_rscript_outpu…

…t_table

[BUGFIX][Processing][Rscript] Write output Table
  • Loading branch information
volaya committed May 25, 2016
2 parents 1cddf8d + 3b7c0fc commit 68379963d21ee31951fd336f7cefbbb8b9a606d5
Showing with 5 additions and 1 deletion.
  1. +5 −1 python/plugins/processing/algs/r/RAlgorithm.py
@@ -281,7 +281,7 @@ def getExportCommands(self):
value = value + '.tif'
commands.append('writeGDAL(' + out.name + ',"' + value
+ '")')
if isinstance(out, OutputVector):
elif isinstance(out, OutputVector):
value = out.value
if not value.endswith('shp'):
value = value + '.shp'
@@ -290,6 +290,10 @@ def getExportCommands(self):
filename = filename[:-4]
commands.append('writeOGR(' + out.name + ',"' + value + '","'
+ filename + '", driver="ESRI Shapefile")')
elif isinstance(out, OutputTable):
value = out.value
value = value.replace('\\', '/')
commands.append('write.csv(' + out.name + ',"' + value + '"')

if self.showPlots:
commands.append('dev.off()')

0 comments on commit 6837996

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