Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't seem to work for Grass 8 #39

Open
bholtdwyer opened this issue Aug 4, 2023 · 2 comments
Open

Doesn't seem to work for Grass 8 #39

bholtdwyer opened this issue Aug 4, 2023 · 2 comments
Labels
wontfix This will not be worked on

Comments

@bholtdwyer
Copy link

Hi! I'm trying to run grass7_r_grow() in R, and my current version of QGIS (3.28.6 Firenze) doesn't have an option to use the Grass 7 plugin, only Grass 8. I've enabled the Grass 8 plugin, but when I try to run the program, I get the following:

new_area = qgis::grass7_r_grow(input = covered_area, radius = 50)
Error in check_algorithm_necessities("grass7:r.grow") : 
  Error: Can not find specified provider `grass7` in local QGIS installation.

If you have the time, could you add grass 8 functions? It would be very helpful!! Thanks so much for this great package; it speeds up my workflow so much.

@JanCaha
Copy link
Owner

JanCaha commented Aug 4, 2023

For this case, you have to use directly qgisprocess package. The issue is that qgis package is precompiled and functions are build here on github actions. The situation with Grass algorithms is a bit complicated, some QGIS version have access to version 7 while some use 8 etc. I am not going to change that, until it is only version 8 everywhere. Then support for version 8 will be implemented and used. Until then please use qgisprocess.

@JanCaha JanCaha added the wontfix This will not be worked on label Aug 4, 2023
@florisvdh
Copy link
Contributor

@bholtdwyer you just need to enable the 'GRASS GIS Provider' plugin in QGIS (you don't need GRASS 8 plugin for that, that is for different things), and you need to have GRASS installed of course.

You need to see the GRASS algorithms in the QGIS processing pane to be able to use them from R.

The 'grass7' string is just the label that QGIS gives to refer to the GRASS provider, and it is included in the name of the algorithms, regardless of whether you're using GRASS 7 or 8. This is expected to change at the QGIS side; should become just 'grass'.

So the grass7_*() functions here will work with GRASS 8 too. I think the problem you should solve is the availability of GRASS algorithms within QGIS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants