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 5fdde8a commit 3d9af5bb0f363c5ae646fcdcd34c6253a4dc605c
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/plugins/processing/algs/r/RAlgorithm.py
@@ -400,7 +400,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 3d9af5b

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