Skip to content

sleeper_userleagues() error: Result must be length 1, not 0. #450

Description

@tanho63

Being in a league but not being attached to a team now seems to return an error:

R> ffscrapr::sleeper_userleagues("ScottFishBowl", 2026)
Error in `dplyr::mutate()`:In argument: `roster_id = purrr::map_int(.data$league_id,
  .sleeper_rosterid, user_id)`.
Caused by error in `purrr::map_int()`:In index: 1.
Caused by error:
! Result must be length 1, not 0.

sitrep:

R> ffscrapr::ffverse_sitrep()
── System Info ─────────────────────────────────────────────────────────────────────
• R version 4.5.0 (2025-04-11) • Running under: Ubuntu 24.04.4 LTS
── Package Status ──────────────────────────────────────────────────────────────────
   package installed  cran      dev behind
1   ffpros     0.1.5  <NA>    0.1.6    dev
2 ffscrapr  1.4.8.20 1.4.8 1.4.8.20       
── Package Options ─────────────────────────────────────────────────────────────────
• No options set for above packages
── Package Dependencies ────────────────────────────────────────────────────────────
• askpass    (1.2.1)   • lubridate  (1.9.4)   • stringr    (1.5.1)  
• assertthat (0.2.1)   • magrittr   (2.0.3)   • sys        (3.4.3)  
• backports  (1.5.0)   • memoise    (2.0.1)   • tibble     (3.3.0)  
• cachem     (1.1.0)   • mime       (0.13)    • tidyr      (1.3.1)  
• checkmate  (2.3.2)   • nflreadr   (1.5.0)   • tidyselect (1.2.1)  
• cli        (3.6.5)   • openssl    (2.3.3)   • timechange (0.3.0)  
• cpp11      (0.5.2)   • pillar     (1.10.2)  • utf8       (1.2.6)  
• curl       (6.4.0)   • pkgconfig  (2.0.3)   • V8         (6.0.4)  
• data.table (1.17.6)  • purrr      (1.1.0)   • vctrs      (0.7.1)  
• dplyr      (1.1.4)   • R6         (2.6.1)   • withr      (3.0.2)  
• fastmap    (1.2.0)   • rappdirs   (0.3.3)   • xml2       (1.3.8)  
• generics   (0.1.4)   • ratelimitr (0.4.1)   • graphics   (4.5.0)  
• glue       (1.8.0)   • Rcpp       (1.0.14)  • grDevices  (4.5.0)  
• hms        (1.1.3)   • rlang      (1.1.7)   • methods    (4.5.0)  
• httr       (1.4.7)   • rvest      (1.0.4)   • stats      (4.5.0)  
• janitor    (2.2.1)   • selectr    (0.4-2)   • tools      (4.5.0)  
• jsonlite   (2.0.0)   • snakecase  (0.11.1)  • utils      (4.5.0)  
• lifecycle  (1.0.5)   • stringi    (1.8.7)     
── Not Installed ───────────────────────────────────────────────────────────────────
• ffsimulator   ()
• ffopportunity ()
────────────────────────────────────────────────────────────────────────────────────

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions