R/load.r

load = function (..., isolate = FALSE, renv = TRUE, dotenv = TRUE, dev = TRUE) {
  check_dots_empty()

  if (renv) {
    configure_renv()
    load_renv()
    disable_renv_autoloader()
  }

  if (dotenv) {
    load_project_dotenv()
  }

  if (! isolate && ! load_user_rprofile()) {
    return(invisible(FALSE))
  }

  if (! isFALSE(dev)) {
    load_dev_package(dev)
  }

  invisible(TRUE)
}

Try the rprofile package in your browser

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

rprofile documentation built on Nov. 2, 2023, 5:06 p.m.