R/openalexR-internal.R

Defines functions .onAttach

.onAttach <- function(libname, pkgname) {
  if (!grepl("suppress", Sys.getenv("openalexR.message"), ignore.case = TRUE)){
    packageStartupMessage(
      "Thank you for using openalexR!\n",
      "To acknowledge our work, please cite the package by calling ",
      "`citation(\"openalexR\")`.\n",
      "To suppress this message, add `openalexR.message = suppressed` ",
      "to your .Renviron file."
    )
  }
}

Try the openalexR package in your browser

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

openalexR documentation built on Sept. 11, 2024, 8:40 p.m.