north-road / qgis-processing-r

QGIS Processing R Provider Plugin
https://north-road.github.io/qgis-processing-r/
GNU General Public License v3.0
63 stars 14 forks source link

package (RcppParallel) failing only in qgis #124

Open ConnorDonegan opened 8 months ago

ConnorDonegan commented 8 months ago

I'm really enjoying linking QGIS to R with your software, thanks for this.

I'm having some trouble loading RcppParallel. I have been trying to fix this on the assumption that there's an issue with how I've set this up. Everything runs fine on my ubuntu system but it fails for me on multiple Windows computers. I've tried starting over after uninstalling R, Rtools, and QGIS, and deleting all R packages. I've used my personal R package library and also tried install packages into the QGIS library.

Is it possible that this has something to do with the plugin? (A script that contains just library(RcppParallel) gives basically the same error as below.) Outside of QGIS (in R), I have no problem loading these packages.

rcpp-error

ConnorDonegan commented 7 months ago

Hi @JanCaha, do you have any thoughts on why RccpParallel would fail to load in the Processing R Provider when using Windows? I haven't been able to resolve the problem yet (and can try to provide some more info if helpful)

JanCaha commented 7 months ago

That could be caused by a lot of things. Likely some issue in communication between QGIS, R and RTools.

Can you share the whole script? I can give it a test ...

ConnorDonegan commented 7 months ago

Yeah, this will fail for me in Windows (but not ubuntu). Thanks

##testing=group
##test=name
##Layer=vector polygon

library(RcppParallel)