Bug report #16618
Processing rscripts: cannot concatenate 'str' and 'NoneType' objects
|Affected QGIS version:||2.18.8||Regression?:||Yes|
|Operating System:||Ubuntu 16.04; Window 10||Easy fix?:||Yes|
|Pull Request or Patch supplied:||No||Resolution:|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||24518|
I have updated QGIS to the latest version 2.18.8 both in Ubuntu 16.04 and Windows 10.
When I try to run any rscrit from the processing toolbox I get the following error message in both OS:
'cannot concatenate 'str' and 'NoneType' objects'
[BUGFIX][Processing][Rscript] Write to R_OUTPUT_VALUES file if saveOutputValues
Fixes #16618 Processing rscripts: cannot concatenate 'str' and 'NoneType' objects
#4 Updated by Anita Graser over 4 years ago
Not sure if it breaks anything else, but if I add
elif isinstance(out, OutputHTML): pass
before the offending
elif out.name != RAlgorithm.R_OUTPUT_VALUES: commands.append('cat("##' + out.name + '",file="' + outputDataFile + '",sep="\n",append=TRUE)') commands.append('cat(' + out.name + ',file="' + outputDataFile + '",sep="\n",append=TRUE)')
Then the HTML output is created and visible in the results viewer and there is no error.
I'm not sure what the problematic lines were supposed to do anyway ...