R/envvar_list.R

Defines functions envvar_list

Documented in envvar_list

#' Get a list of environment variables
#'
#' @description
#' `envvar_list()` returns a named list of the defined environment variables
#'
#' @return A named list
#' @export
#'
#' @examples
#' envvar_list()
envvar_list <- function() {
  as.list(Sys.getenv(names = TRUE))
}

Try the envvar package in your browser

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

envvar documentation built on Sept. 11, 2024, 8:29 p.m.