Running ‘testthat.R’ [16s/65s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/tests.html
  > # * https://testthat.r-lib.org/reference/test_package.html#special-files
  > 
  > library(testthat)
  > library(f1dataR)
  Loading required package: reticulate
  > 
  > test_check("f1dataR")
  [ FAIL 1 | WARN 0 | SKIP 6 | PASS 80 ]
  
  ══ Skipped tests (6) ═══════════════════════════════════════════════════════════
  • fastf1 not available for testing (6): 'test-load_circuit_details.R:3:3',
    'test-load_driver_telemetry.R:3:3', 'test-load_race_session.R:3:3',
    'test-load_race_session.R:59:3', 'test-load_session_laps.R:3:3',
    'test-plot_fastest.R:3:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-clear_f1_cache.R:14:3'): Cache Clearing works for memoised functions to file ──
  <vctrs_error_subscript_oob/vctrs_error_subscript/rlang_error/error/condition>
  Error in `tidyr::unnest(., cols = c("location", "sprint"), names_sep = "_")`: Can't subset columns that don't exist.
  x Column `sprint` doesn't exist.
  Backtrace:
       ▆
    1. ├─f1dataR (local) `<fn>`()
    2. │ └─... %>% janitor::clean_names()
    3. ├─janitor::clean_names(.)
    4. ├─tibble::as_tibble(.)
    5. ├─dplyr::select(...)
    6. ├─tidyr::unnest(., cols = c("location", "sprint"), names_sep = "_")
    7. ├─tidyr:::unnest.data.frame(., cols = c("location", "sprint"), names_sep = "_")
    8. │ └─tidyselect::eval_select(expr = enquo(cols), data = data, allow_rename = FALSE)
    9. │   └─tidyselect:::eval_select_impl(...)
   10. │     ├─tidyselect:::with_subscript_errors(...)
   11. │     │ └─rlang::try_fetch(...)
   12. │     │   └─base::withCallingHandlers(...)
   13. │     └─tidyselect:::vars_select_eval(...)
   14. │       └─tidyselect:::walk_data_tree(expr, data_mask, context_mask)
   15. │         └─tidyselect:::eval_c(expr, data_mask, context_mask)
   16. │           └─tidyselect:::reduce_sels(node, data_mask, context_mask, init = init)
   17. │             └─tidyselect:::walk_data_tree(new, data_mask, context_mask)
   18. │               └─tidyselect:::as_indices_sel_impl(...)
   19. │                 └─tidyselect:::as_indices_impl(...)
   20. │                   └─tidyselect:::chr_as_locations(x, vars, call = call, arg = arg)
   21. │                     └─vctrs::vec_as_location(...)
   22. └─vctrs (local) `<fn>`()
   23.   └─vctrs:::stop_subscript_oob(...)
   24.     └─vctrs:::stop_subscript(...)
   25.       └─rlang::abort(...)
  
  [ FAIL 1 | WARN 0 | SKIP 6 | PASS 80 ]
  Error: Test failures
  Execution halted