get.mapsets {GRASS} | R Documentation |
Access GRASS readable mapsets search path by reading the internal structure
read from the SEARCH\_PATH
file in the current mapset root.
get.mapsets() refresh.mapsets()
The functions are needed because the R interface is run as
a GRASS program within which the SEARCH\_PATH
file is
only read once. If, during an R/GRASS session, a command such
as system("g.mapsets mapset=new.mapset")
is given, the
SEARCH\_PATH
file will be updated, but not the values earlier
read into the interface. Consequently, after any system("g.mapsets
mapset=...")
, refresh.mapsets()
should be run to update the
internal values.
get.mapsets()
returns the current setting as a character vector of
mapsets, while refresh.mapsets()
returns the updated mapset names,
also as a character vector.
Roger S. Bivand, e-mail: Roger.Bivand@nhh.no.
http://grass.itc.it/statsgrass/index.html, Bivand, R. S., (2000) Using the R statistical data analysis language on GRASS 5.0 GIS data base files. Computers and Geosciences, 26, pp. 1043-1052.