Skip to content
Permalink
Browse files

[BUGFIX][Processing][Rscript] Write to R_OUTPUT_VALUES file if saveOu…

…tputValues

Fixes #16618 Processing rscripts: cannot concatenate 'str' and 'NoneType' objects
  • Loading branch information
rldhont committed Jun 6, 2017
1 parent ecb4c5a commit 7a198dff6522ba4a8f864f418116097e2d4ca139
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/plugins/processing/algs/r/RAlgorithm.py
@@ -413,7 +413,7 @@ def getExportCommands(self):
value = out.value
value = value.replace('\\', '/')
commands.append('write.csv(' + out.name + ',"' + value + '")')
elif out.name != RAlgorithm.R_OUTPUT_VALUES:
elif out.name != RAlgorithm.R_OUTPUT_VALUES and self.saveOutputValues:
commands.append('cat("##' + out.name + '",file="' + outputDataFile + '",sep="\n",append=TRUE)')
commands.append('cat(' + out.name + ',file="' + outputDataFile + '",sep="\n",append=TRUE)')

0 comments on commit 7a198df

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