north-road / qgis-processing-r

QGIS Processing R Provider Plugin

Home Page:https://north-road.github.io/qgis-processing-r/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error handling when R script error occurs

cratcliff opened this issue · comments

I have been using the Example with file/table output as a starting point to learn how to implementing my own R script.

My R provider setup is as follows: (R is not installed in Program Files due to administration rights), and I am using QGIS R Provider version 2.2.1.
image

In QGIS LTR 3.10.3 when running the Example with file/table output script copied directly from the webpage I get
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\xxx\\AppData\\Local\\Temp/processing_08962aa0287b4dd18d1d2228ea8cc510/6df35e991d7a4a8ab13ec4115308e5e9/processing_values.txt' error (log file: QGIS_LTR_3.10.3_Rplugin.log ).
I think this is triggered when an error occurs within the R script. In this case the error is Error: '\U' used without hex digits in character string starting ""C:\U".

I have also tried this in QGIS 3.12.3 in which for some reason the hex digits error does not occur, so I forced an R script error by changing the last line to Stat <- Stat_fil and got the same error (see log: QGIS_3.12.3_Rplugin.log
)

Is this the expected behaviour from the Processing R plugin when an error within the R script is encountered?

3.10.3 is quite old now -- is it possible to test on a more recent 3.10 release? There's been a lot of fixes in 3.10 relating to processing and it's likely this was fixed in qgis itself.

Closing due to lack of feedback