R/init.R

Defines functions .onLoad

.onLoad <- function(libName, pkgName) { # nocov start
  initialize_options(
    nhlapi_baseurl = "https://statsapi.web.nhl.com/api/v1/",
    nhlapi_try_silent = TRUE,
    nhlapi_player_map = hashedPlayers,
    nhlapi_get_retries = 2L,
    nhlapi_get_retry_sleep = 1,
    nhlapi_flatten = TRUE,
    nhlapi_get_noretry = "HTTP error 404|HTTP error 400",
    nhlapi_log_datetime = "%H:%M:%S",
    nhlapi_log_threshold = 25L
  )
} # nocov end
jozefhajnala/nhlapi documentation built on March 11, 2021, 3:57 p.m.