Skip to content

Commit 7a198df

Browse files
committed
[BUGFIX][Processing][Rscript] Write to R_OUTPUT_VALUES file if saveOutputValues
Fixes #16618 Processing rscripts: cannot concatenate 'str' and 'NoneType' objects
1 parent ecb4c5a commit 7a198df

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
@@ -413,7 +413,7 @@ def getExportCommands(self):
413413
value = out.value
414414
value = value.replace('\\', '/')
415415
commands.append('write.csv(' + out.name + ',"' + value + '")')
416-
elif out.name != RAlgorithm.R_OUTPUT_VALUES:
416+
elif out.name != RAlgorithm.R_OUTPUT_VALUES and self.saveOutputValues:
417417
commands.append('cat("##' + out.name + '",file="' + outputDataFile + '",sep="\n",append=TRUE)')
418418
commands.append('cat(' + out.name + ',file="' + outputDataFile + '",sep="\n",append=TRUE)')
419419

0 commit comments

Comments
 (0)