grassGUI,missing-method | R Documentation |
This function starts the GRASS GUI. It is provided merely as a utility... in most cases, it should not be used if you are doing any kind of analysis of rasters or vectors using fasterRaster. The reason for this prohibition is that fasterRaster objects, like GRaster
s and GVector
s, are really "pointers" to objects in GRASS. If fasterRaster points to a GRASS object that is changed in GRASS but not R, then fasterRaster will not "know" about it, so changed won't be reflected in the fasterRaster object.
One aspect of the GUI that is useful but will not change objects is to use it to plot rasters and vectors. However, the a fasterRaster object in R will have a different name in GRASS. The name in GRASS of a GVector
or GRaster
is given by sources()
.
## S4 method for signature 'missing'
grassGUI()
Nothing (starts the GRASS GUI).
mow()
if (grassStarted()) {
# Starting the GRASS GUI and making changes to rasters or vectors can "break"
# the GRasters and GVectors they are associated with in R.
if (interactive() & FALSE) grassGUI()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.