R/clear_mask.R

Defines functions clear_mask

Documented in clear_mask

#' Clear current raster mask
#' @description This function has no parameters. It can be used to clear an existing raster mask.
#' @examples 
#' if(check_running()) clear_mask()
#' @export
clear_mask <- function(){
  if(!check_running()) stop("There is no valid GRASS session. Program halted.")
  execGRASS(
    "r.mask",
    flags = "r"
  )
}

Try the rdwplus package in your browser

Any scripts or data that you put into this service are public.

rdwplus documentation built on April 4, 2025, 1:49 a.m.