Running ‘testthat.R’ [19s/26s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(nflfastR)
  > 
  > test_check("nflfastR")
  OMP: Warning #96: Cannot form a team with 24 threads, using 2 instead.
  OMP: Hint Consider unsetting KMP_DEVICE_THREAD_LIMIT (KMP_ALL_THREADS), KMP_TEAMS_THREAD_LIMIT, and OMP_THREAD_LIMIT (if any are set).
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-columns.R:7:3): Columns identical across all 3 possibilities ────
  Error: missing value where TRUE/FALSE needed
  Backtrace:
       █
    1. └─nflfastR::fast_scraper(game_ids[1], source = "nfl", pp = F) test-columns.R:7:2
    2.   ├─base::suppressWarnings(...)
    3.   │ └─base::withCallingHandlers(...)
    4.   ├─progressr::with_progress(...)
    5.   └─purrr::map_dfr(...)
    6.     └─purrr::map(.x, .f, ...)
    7.       └─nflfastR:::.f(.x[[i]], ...)
    8.         └─nflfastR:::get_pbp_gc(x, ...)
    9.           └─base::tryCatch(...)
   10.             └─base:::tryCatchList(expr, classes, parentenv, handlers)
   11.               ├─base:::tryCatchOne(...)
   12.               │ └─base:::doTryCatch(return(expr), name, parentenv, handler)
   13.               └─base:::tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
   14.                 └─base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   15.                   └─value[[3L]](cond)
  ── Error (test-scrapers.R:7:3): Scraper with source nfl works for an old and new game at once: no pp ──
  Error: missing value where TRUE/FALSE needed
  Backtrace:
       █
    1. ├─fast_scraper(game_ids, pp = F) %>% extract_desc() test-scrapers.R:7:2
    2. ├─nflfastR:::extract_desc(.)
    3. │ └─`%>%`(...) helpers.R:5:2
    4. ├─dplyr::pull(., desc)
    5. ├─dplyr::ungroup(.)
    6. ├─dplyr::slice(., 1)
    7. ├─dplyr::group_by(., game_id)
    8. ├─dplyr::filter(., down == 1)
    9. └─nflfastR::fast_scraper(game_ids, pp = F)
   10.   ├─base::suppressWarnings(...)
   11.   │ └─base::withCallingHandlers(...)
   12.   ├─progressr::with_progress(...)
   13.   └─purrr::map_dfr(...)
   14.     └─purrr::map(.x, .f, ...)
   15.       └─nflfastR:::.f(.x[[i]], ...)
   16.         └─nflfastR:::get_pbp_gc(x, ...)
   17.           └─base::tryCatch(...)
   18.             └─base:::tryCatchList(expr, classes, parentenv, handlers)
   19.               ├─base:::tryCatchOne(...)
   20.               │ └─base:::doTryCatch(return(expr), name, parentenv, handler)
   21.               └─base:::tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
   22.                 └─base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   23.                   └─value[[3L]](cond)
  ── Error (test-scrapers.R:25:3): Wrapper with source nfl works for an old and new game at once ──
  Error: missing value where TRUE/FALSE needed
  Backtrace:
       █
    1. ├─nflfastR::build_nflfastR_pbp(game_ids) test-scrapers.R:25:2
    2. │ ├─`%>%`(...)
    3. │ └─nflfastR::fast_scraper(...)
    4. │   ├─base::suppressWarnings(...)
    5. │   │ └─base::withCallingHandlers(...)
    6. │   ├─progressr::with_progress(...)
    7. │   └─purrr::map_dfr(...)
    8. │     └─purrr::map(.x, .f, ...)
    9. │       └─nflfastR:::.f(.x[[i]], ...)
   10. │         └─nflfastR:::get_pbp_gc(x, ...)
   11. │           └─base::tryCatch(...)
   12. │             └─base:::tryCatchList(expr, classes, parentenv, handlers)
   13. │               ├─base:::tryCatchOne(...)
   14. │               │ └─base:::doTryCatch(return(expr), name, parentenv, handler)
   15. │               └─base:::tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
   16. │                 └─base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   17. │                   └─value[[3L]](cond)
   18. ├─nflfastR::add_xyac(., in_builder = builder)
   19. │ └─base::nrow(pbp)
   20. ├─nflfastR::add_qb_epa(., in_builder = builder)
   21. │ └─base::nrow(pbp)
   22. └─nflfastR::clean_pbp(., in_builder = builder)
   23.   └─base::nrow(pbp)
  ── Error (test-scrapers.R:57:3): Decoding player IDs works ─────────────────────
  Error: missing value where TRUE/FALSE needed
  Backtrace:
       █
    1. ├─nflfastR::build_nflfastR_pbp(game_ids, decode = TRUE) test-scrapers.R:57:2
    2. │ ├─`%>%`(...)
    3. │ └─nflfastR::fast_scraper(...)
    4. │   ├─base::suppressWarnings(...)
    5. │   │ └─base::withCallingHandlers(...)
    6. │   ├─progressr::with_progress(...)
    7. │   └─purrr::map_dfr(...)
    8. │     └─purrr::map(.x, .f, ...)
    9. │       └─nflfastR:::.f(.x[[i]], ...)
   10. │         └─nflfastR:::get_pbp_gc(x, ...)
   11. │           └─base::tryCatch(...)
   12. │             └─base:::tryCatchList(expr, classes, parentenv, handlers)
   13. │               ├─base:::tryCatchOne(...)
   14. │               │ └─base:::doTryCatch(return(expr), name, parentenv, handler)
   15. │               └─base:::tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
   16. │                 └─base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   17. │                   └─value[[3L]](cond)
   18. ├─nflfastR::add_xyac(., in_builder = builder)
   19. │ └─base::nrow(pbp)
   20. ├─nflfastR::add_qb_epa(., in_builder = builder)
   21. │ └─base::nrow(pbp)
   22. └─nflfastR::clean_pbp(., in_builder = builder)
   23.   └─base::nrow(pbp)
  
  [ FAIL 4 | WARN 0 | SKIP 0 | PASS 6 ]
  Error: Test failures
  Execution halted