mow | R Documentation |
fasterRaster attempts to delete rasters and vectors in the GRASS cache. This function will a) search the current GRASS "project/location" 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. Only objects in the currently active GRASS project/location will be removed (see vignette("project_mapset", package = "fasterRaster")
).
Note that calling this function inside another function's environment without providing an argument for x
can be very dangerous, as it will detect objects outside that environment, and thus delete any rasters/vectors outside that environment.
mow(x, type = NULL, keep = NULL, verbose = TRUE, ask = TRUE)
x |
Either missing (default) or an environment. |
type |
Either |
keep |
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.