R/zzz.r

Defines functions .onLoad

# New env for global constants
nhlscrape.globals <- new.env(parent=emptyenv())

.onLoad <- function(libname, pkgname) {
  nhlscrape.globals$user_set_db = FALSE
  nhlscrape.globals$db_file <- "No file found. Please set with SetDbPath()"
  nhlscrape.globals$api_url <- "https://statsapi.web.nhl.com/api/v1/"
  nhlscrape.globals$htmlrep_url <- "http://www.nhl.com/scores/htmlreports/"

  invisible()
}

Try the nhlscrape package in your browser

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

nhlscrape documentation built on March 26, 2020, 5:29 p.m.