R/is_running.R

Defines functions is_running

Documented in is_running

#' Is the running app a golem app?
#'
#' Note that this will return `TRUE` only if the application
#' has been launched with `with_golem_options()`
#'
#' @return TRUE if the running app is a `{golem}` based app,
#' FALSE otherwise.
#' @export
#'
#' @examples
#' is_running()
is_running <- function() {
  .golem_globals$running
}

Try the golem package in your browser

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

golem documentation built on June 7, 2023, 5:46 p.m.