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"
  )
}
apear9/rdwplus documentation built on Feb. 13, 2025, 11:34 a.m.