R/zzz.R

Defines functions .onLoad

.onLoad <- function(libname, pkgname){
  if (is.null(getOption("NBA_api_base"))) {
  default_base <- "http://www.basketball-reference.com"
  options("NBA_api_base" = default_base)
  }
}

Try the ballr package in your browser

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

ballr documentation built on Jan. 20, 2020, 1:13 a.m.