R/zzz.R

Defines functions .onAttach

.onAttach <- function(libname, pkgname) { # nocov start
  mapbox_message <- ""
  if (Sys.getenv("MAPBOX_API_TOKEN") == "") {
    mapbox_message <- c(
      "\nIf you want to add a basemap from mapbox, ",
      "it is recommended that you store your API token in an environment variable called MAPBOX_API_TOKEN.\n"
    )
  }

  packageStartupMessage(
    pkgname, " ", getNamespaceVersion(pkgname), " wrapping deck.gl.js ", deckgljs_version(), "\n",
    "  Documentation: https://crazycapivara.github.io/deckgl/\n",
    "  Issues, notes and bleeding edge: https://github.com/crazycapivara/deckgl\n",
    mapbox_message
  )
} # nocov end


globalVariables(c("."))

Try the deckgl package in your browser

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

deckgl documentation built on March 7, 2023, 5:37 p.m.