R/zzz.R

Defines functions .onAttach

# Package Startup Message

.onAttach <- function(...) {

  if (!getOption("targomor.quiet", FALSE)) {

    msg <- c("Welcome to TargomoR!", "",
             "This package talks to the Targomo API. To use it you will need an API Key. Get yours at:", "",
             "* https://targomo.com/developers/pricing/", "",
             "Please also be aware of the Targomo terms and conditions:", "",
             "* https://account.targomo.com/legal/terms", "",
             "Stop this message by setting `options(targomor.quiet = TRUE)`")

    packageStartupMessage(paste0(msg, collapse = "\n"))

  }

}
cwthom/TargomoR documentation built on Dec. 24, 2019, 7:02 p.m.