mow | R Documentation |
fasterRaster attempts to remove intermediate rasters and vectors from the GRASS cache as they are not needed, but files can still accumulate, especially if you remove GRaster
s or GVector
s from the R working environment (e.g., by using rm()
or simply using the same variable name for different rasters/vectors). This function will a) search the GRASS cache for all rasters/vectors there; and b) remove any of them that are not pointed to by an object in the active R environment.
Note that calling this function inside another function's environment can be very dangerous, as it will only be able to see objects in that environment, and thus delete any rasters/vectors outside that environment.
Note also that this function will only clean the current GRASS "project"/"location" (see vignette("projects_mapsets", package = "fasterRaster")
).
mow(x, type = NULL, verbose = TRUE, ask = TRUE)
x |
Either missing (default) or an environment. |
type |
Either |
verbose |
Logical: If |
ask |
Logical: If |
Invisibly returns a list with the number of rasters and vectors deleted.
Option clean
in faster()
if (grassStarted()) {
if (FALSE) mow()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.