if (grassStarted() & interactive()) {
# Open help pages for `r.mapcalc` and `r.sun`:
grassHelp("r.mapcalc")
grassHelp("r.sun")
# GRASS table of contents:
grassHelp("toc")
# Index page:
grassHelp("index")
}
Run the code above in your browser using DataLab