Consult 'Grass GIS' Documentation in the RStudio Viewer or your Browser

A tool for easy viewing of the documentation of 'GRASS GIS' (see < https://grass.osgeo.org/>). Pages of the 'GRASS GIS' manuals found at < https://grass.osgeo.org/grass78/manuals/full_index.html> and at < https://grass.osgeo.org/grass78/manuals/addons/> can be viewed within the Viewer pane of 'RStudio', or be opened in the user's default browser.


rgrassdoc

License: GPLv3 R buildstatus Codecov testcoverage

Are you a user of rgrass7, the R interfacte to GRASS GIS? Do you find yourself looking at the online GRASS manuals all the time? rgrassdoc provide two simple functions, man and browse, which allow you to visualize the GRASS GIS manual page for any GRASS module, right in the RStudio Viewer pane (or to easily open the manual page in your browser). The goal is to fluidify your workflow when using rgrass7.

Installation

You can install from GitHub like so:

devtools::install_github("vlucet/rgrassdoc")

Example

The man function supports non standard evaluation for even less typing and faster access to the information:

library(rgrassdoc)
#> ℹ GRASS GIS documentation - set to GRASS version 7.8

man(r.in.gdal)
#> ✓ Displaying module r.in.gdal in viewer
#> Session is not interactive - viewer cannot be used

man also supports partial matching:

man(r.gdal)
#> x No manual entry exists for module r.gdal
#> → Did you mean:
#>    r.in.gdal
#>    r.out.gdal
#> ✓ Displaying module r.in.gdal in viewer
#> Session is not interactive - viewer cannot be used

You can also open the page in your browser with browse. Your browser will then of course support links to other pages of the manual:

browse(v.overlay)

Using the RStudio viewer pane, this is what you can expect to see:

Viewer Pane

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("rgrassdoc")

1.0.0 by Valentin Lucet, 6 years ago


https://vlucet.github.io/rgrassdoc/


Report a bug at https://github.com/VLucet/rgrassdoc/issues/


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


Authors: Valentin Lucet [aut, cre]


Documentation:   PDF Manual  


GPL-3 license


Imports rlang, xml2, rstudioapi, cli

Suggests rgrass7, testthat, covr


See at CRAN