R/zzz.R

Defines functions .onAttach

.onAttach <- function(libname, pkgname) {
  packageStartupMessage(
    "By exporting data from the CAVD DataSpace, ",
    "you agree to be bound by the Terms of Use available on ",
    "the CAVD DataSpace sign-in page at https://dataspace.cavd.org"
  )

  netrc <- getNetrcPath()

  if (!file.exists(netrc) &&
    !exists("labkey.apiKey") &&
    Sys.getenv("DS_login") == "") {
    packageStartupMessage(
      "A netrc file is required to connect to the DataSpace. ",
      "Use `writeNetrc()` to create a new netrc file."
    )
  }
}

Try the DataSpaceR package in your browser

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

DataSpaceR documentation built on June 24, 2022, 5:05 p.m.