R/check_running.R

Defines functions check_running

Documented in check_running

#' Check whether a valid GRASS session is running
#' @description This function is mostly used internally by other functions in the package. However, users may call this function to check whether they have correctly established a GRASS session prior to using the other functions in the package.
#' @return A logical. The logical indicates whether a valid GRASS session is currently running.
#' @examples 
#' 
#' check_running()
#' 
#' @export
check_running <- function(){
  info <- get.GIS_LOCK()
  nchar(info) > 0
}

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.