R/zzz.R

Defines functions .onAttach

.onAttach <- function(libname, pkgname) {
  api_key_message <- ""
  if (Sys.getenv("OWM_API_KEY") == "") {
    api_key_message <- "\nIt is recommended that you store your api key in an environment variable called OWM_API_KEY.\n"
  }

  packageStartupMessage(
    pkgname, " ", getNamespaceVersion(pkgname), "\n",
    "   another crazy way to talk to OpenWeatherMap's API\n",
    "   Documentation: type ?owmr or https://crazycapivara.github.io/owmr/\n",
    "   Issues, notes and bleeding edge: https://github.com/crazycapivara/owmr/\n",
    api_key_message
  )
}

globalVariables(c(".", "owm_layers"))

Try the owmr package in your browser

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

owmr documentation built on Jan. 11, 2020, 5:08 p.m.