Closed ErvanCH closed 4 years ago
qgis_session_info()
does not report if GRASS7 is installed, afair this is a QGIS3 issue. However, GRASS7 algorithms can be run, e.g., I just ran following code under Windows using the latest QGIS3 version (3.8.0).
library("RQGIS3")
library("raster")
# attach data
data("dem")
params = get_args_man(alg = "grass7:r.slope.aspect", options = TRUE)
params$elevation = dem
params$slope = file.path(tempdir(), "slope.tif")
params$aspect = file.path(tempdir(), "aspect.tif")
grass_out_1 = run_qgis(
"grass7:r.slope.aspect", params = params,
show_output_paths = FALSE, load_output = TRUE
)
In any case, make sure that your OSGeo4W installer also installed GRASS7.
Hi there,
Thanks for all your work to develop this very nice package. I have updated QGIS to version 3.8, and it seems RQGIS3 can't locate grass7 and subsequent functions. Here is what I get:
library(RQGIS3)
$qgis_prefix_path [1] "C:/Program Files/QGIS 3.8/apps/qgis"
$python_plugins [1] "C:/Program Files/QGIS 3.8/apps/qgis/python/plugins"
$R [1] "R version 3.5.2 (2018-12-20)"
$gdal [1] "2.4.1"
$grass7 [1] FALSE
$qgis_version [1] "3.8.0-Zanzibar"
$saga [1] "2.3.2"
Am I doing anything wrong? Many thanks for your guidance. Ervan