Open ghtmtt opened 1 year ago
The issue is that all of these packages are linked via dependencies to sf, raster, stars or sp (which are necessary for plugin to work correctly). I also noticed that the first run last very long, the reason probably is that on the packages that contain some C++ code are compiled, on Windows it should be significantly faster.
One thing that can be done, is to set Options -> Processing -> Providers -> R -> User Library Folder to a folder, that standard R instance uses for library installs (for me it is /home/user/R/x86_64-pc-linux-gnu-library/4.2). That way the normal R installation will share the libs with QGIS (unfortunately that is really hard to properly detect and better to do manually). If the user already has the libs, then the plugin will not install them again. That is so far only reasonable solution that I found.
Thanks for the hint. If I'm setting the option to use the system folder over the user one, like this (the path of R is correct):
than I cannot open the R algorithms anymore:
Is it possible that the algorithms are not opening because in the system folder of R some required packages are missing?
I tried with a new QGIS profile as well, but when running one of the example script (like scatterplot), the plugin wants to install these packages:
and it requires around 50 minutes:
I was wondering if all the packages in the list are required.
I'm on a Linux Debian Sid machine and tested with QGIS 3.22 and 3.29 compiled.