R/grassStarted.r

Defines functions grassStarted

Documented in grassStarted

#' Has "GRASS" been started or not?
#'
#' @description Returns `TRUE` or `FALSE`, depending on whether a **GRASS** connection has been made or not within the current **R** session. Usually used only by developers.
#'
#' @returns Logical.
#'
#' @examples
#'
#' grassStarted()
#'
#' @aliases grassStarted
#' @rdname grassStarted
#' @export
grassStarted <- function() {
	exists(".fasterRaster", inherits = TRUE) && .fasterRaster$grassStarted
}
adamlilith/fasterRaster documentation built on Sept. 23, 2024, 1:28 a.m.