Interface Between 'GRASS' Geographical Information System and 'R'

An interface between the 'GRASS' geographical information system ('GIS') and 'R', based on starting 'R' from within the 'GRASS' 'GIS' environment, or running a free-standing 'R' session in a temporary 'GRASS' location; the package provides facilities for using all 'GRASS' commands from the 'R' command line. The original interface package for 'GRASS 5' (2000-2010) is described in Bivand (2000) and Bivand (2001) < https://www.r-project.org/conferences/DSC-2001/Proceedings/Bivand.pdf>. This was succeeded by 'spgrass6' for 'GRASS 6' (2006-2016) and 'rgrass7' for 'GRASS 7' (2015-present). The 'rgrass' package modernizes the interface for 'GRASS 8' while still permitting the use of 'GRASS 7'.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("rgrass")

0.5-3 by Steven Pawley, a year ago


https://osgeo.github.io/rgrass/, https://grass.osgeo.org/, https://github.com/osgeo/rgrass, https://lists.osgeo.org/mailman/listinfo/grass-stats


Report a bug at https://github.com/osgeo/rgrass/issues/


Browse source code at https://github.com/cran/rgrass


Authors: Roger Bivand [aut] , Sebastian Jeworutzki [ctb] (ORCID: , Rainer Krug [ctb] , Robin Lovelace [ctb] , Markus Neteler [ctb] , Steven Pawley [cre, aut] (ORCID: , Floris Vanderhaeghe [ctb] (ORCID:


Documentation:   PDF Manual  


GPL (>= 2) license


Imports stats, utils, methods, xml2

Suggests terra, sp, knitr, rmarkdown, sf, stars, raster, codetools, testthat, withr, fs

System requirements: GRASS (>= 7)


Imported by fasterRaster.

Depended on by rdwplus.

Suggested by hydflood, link2GI.


See at CRAN