Maybe a fix ...
On Fri, Jun 2, 2017 at 8:31 PM, Anita Graser <[email protected]> wrote:
> File
> "C:/OSGEO4~1/apps/qgis-ltr/./python/plugins\processing\algs\r\RAlgorithm.py",
> line 404, in getExportCommands
>
> commands.append('cat("##' + out.name + '",file="' + outputDataFile +
> '",sep="\n",append=TRUE)')
>
> TypeError: cannot concatenate 'str' and 'NoneType' objects
>
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 ...
Best wishes,
Anita
_______________________________________________
QGIS-Developer mailing list
[email protected]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer