R/get_token.R

Defines functions get_token

Documented in get_token

#' get_token
#' 
#' @keywords internal
#'
get_token <- function() {
  if (Sys.getenv("FDP_LOCAL_TOKEN") != "") {
    return(Sys.getenv("FDP_LOCAL_TOKEN"))
  }      
  readLines(file.path("~", ".fair", "registry", "token"))
}

Try the rDataPipeline package in your browser

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

rDataPipeline documentation built on Oct. 8, 2024, 5:06 p.m.