ffverse / ffscrapr

R API Client for Fantasy Football League Platforms
https://ffscrapr.ffverse.com
Other
76 stars 21 forks source link

ff_scoringhistory() broken? #388

Closed TheMathNinja closed 1 year ago

TheMathNinja commented 1 year ago

This code:

library(ffscrapr)
library(nflverse)
library(tidyverse)

ff_scoringhistory(mfl_connect(season = 2021, league_id = 22686, rate_limit_number = 3, rate_limit_seconds = 6),
                  season = 2019:2021)

returns

 Error in `dplyr::mutate()`:
! Problem while computing `position = ifelse(.data$position %in% c("HB",
  "FB"), "RB", .data$position)`.
Caused by error in `.data$position`:
! Column `position` not found in `.data`.
Run `rlang::last_error()` to see where the error occurred.
tanho63 commented 1 year ago

Can you fill out the full bug report form please https://github.com/ffverse/ffscrapr/issues/new/choose