Skip to content

Commit 3d9af5b

Browse files
committedJun 6, 2017
[BUGFIX][Processing][Rscript] Write to R_OUTPUT_VALUES file if saveOutputValues
Fixes #16618 Processing rscripts: cannot concatenate 'str' and 'NoneType' objects
1 parent 5fdde8a commit 3d9af5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎python/plugins/processing/algs/r/RAlgorithm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ def getExportCommands(self):
400400
value = out.value
401401
value = value.replace('\\', '/')
402402
commands.append('write.csv(' + out.name + ',"' + value + '")')
403-
elif out.name != RAlgorithm.R_OUTPUT_VALUES:
403+
elif out.name != RAlgorithm.R_OUTPUT_VALUES and self.saveOutputValues:
404404
commands.append('cat("##' + out.name + '",file="' + outputDataFile + '",sep="\n",append=TRUE)')
405405
commands.append('cat(' + out.name + ',file="' + outputDataFile + '",sep="\n",append=TRUE)')
406406

0 commit comments

Comments
 (0)
Please sign in to comment.