R/isLocal.R

Defines functions isLocal

Documented in isLocal

#' isLocal
#'
#' Checks if a Shiny app runs locally or on a server
#'
#' @return logical
#' @export
#'
#' @examples
#' isLocal()
isLocal <- function() { Sys.getenv('SHINY_PORT') == "" }
sigbertklinke/mmstat4 documentation built on Sept. 13, 2024, 4:46 p.m.