R/is_positron.R

Defines functions is_positron

Documented in is_positron

#' Checks if running R via Positron
#'
#' @return A logical
is_positron <- function() {
  (Sys.getenv("POSITRON") == "1") && nzchar(Sys.getenv("POSITRON_VERSION"))
}

Try the startup package in your browser

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

startup documentation built on April 3, 2025, 8:52 p.m.