Skip to content

ff_playerscores not working for some leagues #349

@nickpietrantonio

Description

@nickpietrantonio

I ran into a problem trying to run ff_playerscores on the below example league, but was able to run it for other leagues(league_id = 38126 worked for me). Other ff_scrapr functions I have tried so far have worked fine for this league like ff_draftpicks()

reprex:

library(ffscrapr)
#> Warning: package 'ffscrapr' was built under R version 4.1.3
library(dplyr)
#> Warning: package 'dplyr' was built under R version 4.1.3
#> 
#> Attaching package: 'dplyr'
#> The following objects are masked from 'package:stats':
#> 
#>     filter, lag
#> The following objects are masked from 'package:base':
#> 
#>     intersect, setdiff, setequal, union
ff_connect(platform = "mfl", league_id = 20917, season = 2021) %>% 
  ff_playerscores(season = 2021, 1)
#> Error in `dplyr::mutate()`:
#> ! Problem while computing `connection = purrr::map_if(...)`.
#> Caused by error in `probe()`:
#> ! length(.p) == length(.x) is not TRUE

ff_connect(platform = "mfl", league_id = 20917, season = 2021) %>% 
  ff_league()
#> # A tibble: 2 x 17
#>   league_id league_name    season league_type franchise_count qb_type idp  
#>   <chr>     <chr>           <int> <chr>                 <dbl> <chr>   <lgl>
#> 1 20917     NFL GMs League   2021 <NA>                     32 1QB     TRUE 
#> 2 20917     NFL GMs League   2021 <NA>                     32 1QB     TRUE 
#> # ... with 10 more variables: scoring_flags <chr>, best_ball <lgl>,
#> #   salary_cap <lgl>, player_copies <dbl>, years_active <chr>, qb_count <chr>,
#> #   roster_size <dbl>, league_depth <dbl>, draft_type <chr>,
#> #   draft_player_pool <chr>```

Metadata

Metadata

Assignees

No one assigned

    Labels

    release pending ⏳this feature/bug is resolved in the development version

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions