All the material presented here, to the extent it is original, is available under CC-BY-SA.
I am running GRASS 8.2.0 and R 4.2.1, with recent update.packages()
. Please install a recent GRASS https://grass.osgeo.org/download and a recent R https://cran.r-project.org/ before reaching Florence. The CRAN contributed packages used are:
needed <- c("rgrass", "XML", "raster", "stars", "abind", "sp", "sf", "terra")
and may be installed when online using this code (you will be asked which repository to access):
inst <- match(needed, .packages(all=TRUE))
need <- which(is.na(inst))
if (length(need) > 0) install.packages(needed[need])
Script and data at https://github.com/rsbivand/foss4g_2022/raw/main/modernizing_220822.zip. Download to suitable location, unzip and use as basis.
Download and unzip the data and scripts, and, after editing the string containing the GRASS installation GISBASE
, try to run:
source("modernizing_220822.R", echo=TRUE)
Both R and GRASS are FOSS. Both build on FOSS foundations, GRASS directly and R through contributed packages that the user may choose to install in R libraries.