R/renv.R

Defines functions home .Renviron

# from rtweet package
home <- function() {
  if (!identical(Sys.getenv("HOME"), "")) {
    file.path(Sys.getenv("HOME"))
  } else {
    file.path(normalizePath("~"))
  }
}

# from rtweet package
.Renviron <- function() {
  if (file.exists(".Renviron")) {
    ".Renviron"
  } else {
    file.path(home(), ".Renviron")
  }
}
lusava/appfigr documentation built on Sept. 15, 2019, 2:22 p.m.