Skip to contents

helper that loads multiple seasons from the data repo either into memory or writes it into a db using some forwarded arguments in the dots

[Deprecated]

The PHF has ceased operations. This function is deprecated and will be removed in a future release.

Usage

load_phf_player_box(
  seasons = most_recent_phf_season(),
  ...,
  dbConnection = NULL,
  tablename = NULL
)

Arguments

seasons

A vector of 4-digit years associated with given PHF seasons. (Min: 2011)

...

Additional arguments passed to an underlying function that writes the season data into a database (used by update_phf_db()).

dbConnection

A DBIConnection object, as returned by DBI::dbConnect()

tablename

The name of the player box data table within the database

Value

Returns a tibble

Examples

# \donttest{
  try(load_phf_player_box(2021))
#> Error : `load_phf_player_box()` was deprecated in fastRhockey 1.0.0 and is now
#> defunct.
#>  The PHF has ceased operations.
# }