The date and method of each player's acquisition onto a fantasy roster.
player_acquire(leagueId = ffl_id(), leagueHistory = FALSE, ...)
Numeric league ID or ESPN fantasy page URL. Defaults to
getOption("fflr.leagueId")
. Function fails if no ID is found.
logical; Should the leagueHistory
version of the API
be called? If TRUE
, a list of results is returned, with one element for
each historical year of the league.
Additional queries passed to httr::GET()
. Arguments are
converted to a named list and passed to query
alongside view
.
A data frame of roster players with acquisition method and date.
player_acquire(leagueId = "42654852")
#> League has not yet drafted this season
#> data frame with 0 columns and 0 rows