rrm <-
function(patt, mapset)
{
if(missing(mapset)) {
system(paste0("g.mremove -f rast=", patt))
} else {
currmapset <- system("g.gisenv MAPSET", intern=TRUE)
mapset(mapset)
system(paste0("g.mremove -f rast=", patt))
mapset(currmapset)
}
invisible()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.