I am trying to use the RQGIS3 package to access QGIS3 functions from R, and although briefly I had things working (mostly), running the following code:
library(RQGIS3) qgis_env <- set_env("C:/Program Files/QGIS 3.4") qgis_session_info(qgis_env=qgis_env)</code>
now produces the following error:
Error in py_get_attr_impl(x, name, silent) : AttributeError: module '__main__' has no attribute 'RQGIS3'
I'm not sure what changed. Another post suggested that the order in which packages were loaded determined whether this error cropped up, but in my case, I have not even loaded any other packages. I am pretty new at using RQGIS(3), and know next to nothing about Python.
I am using QGIS 3.4.7, and R 3.5.0 (I will get out IT staff to upgrade R next week to see if that fixes things).
Any thoughts what else might be going on here?