Skip to content

Commit

Permalink
Update team_roster() arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
k5cents committed Sep 16, 2021
1 parent e446f36 commit 1393ef0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 3 additions & 3 deletions R/roster.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
#' team_roster(leagueId = "42654852")
#' @return A dataframe (or list) with league teams.
#' @export
team_roster <- function(leagueId = ffl_id(), seasonId = 2021,
leagueHistory = FALSE, ...) {
team_roster <- function(leagueId = ffl_id(), leagueHistory = FALSE, ...) {
dat <- ffl_api(
leagueId = leagueId,
view = "mRoster",
leagueHistory = leagueHistory,
view = "mRoster",
...
)
stop_predraft(dat)
if (leagueHistory) {
lapply(dat$teams, function(x) lapply(x$roster$entries, out_roster))
} else {
Expand Down
6 changes: 1 addition & 5 deletions man/team_roster.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1393ef0

Please # to comment.