Running ‘testthat.R’ [0m/19m]
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")
  Waiting 5s for retry backoff =====>------------------------- 
  Waiting 5s for retry backoff ========================>------ 
  Waiting 5s for retry backoff ==============================> 
  Waiting 5s for retry backoff ======>------------------------ 
  Waiting 5s for retry backoff ==========>-------------------- 
  Waiting 5s for retry backoff ============================>-- 
  Waiting 5s for retry backoff ==============================> 
  Waiting 5s for retry backoff =====>------------------------- 
  Waiting 5s for retry backoff ========>---------------------- 
  Waiting 5s for retry backoff ==========================>---- 
  Waiting 5s for retry backoff ==============================> 
  Waiting 5s for retry backoff =====>------------------------- 
  Waiting 5s for retry backoff ========================>------ 
  Waiting 5s for retry backoff ==============================> 
  Failure at Ergast with https:// connection. Retrying as http://.
  f1dataR: Error getting current season from ergast: Error in `httr2::req_url()`: ! `req` must be an HTTP request object, not a <httr2_response> object.
  
  Falling back to manually determined 'current' season
  Waiting 5s for retry backoff =====>------------------------- 
  Waiting 5s for retry backoff ====================>---------- 
  Waiting 5s for retry backoff ==============================> 
  Waiting 5s for retry backoff =====>------------------------- 
  Waiting 5s for retry backoff =====================>--------- 
  Waiting 5s for retry backoff ==============================> 
  Waiting 5s for retry backoff =====>------------------------- 
  Waiting 5s for retry backoff =======================>------- 
  Waiting 5s for retry backoff ==============================> 
  Waiting 5s for retry backoff =====>------------------------- 
  Waiting 5s for retry backoff =======>----------------------- 
  Waiting 5s for retry backoff ========================>------ 
  Waiting 5s for retry backoff ==============================> 
  Failure at Ergast with https:// connection. Retrying as http://.
  f1dataR: Error getting current season from ergast: Error in `httr2::req_url()`: ! `req` must be an HTTP request object, not a <httr2_response> object.
  
  Falling back to manually determined 'current' season
  Waiting 5s for retry backoff =====>------------------------- 
  Waiting 5s for retry backoff ======================>-------- 
  Waiting 5s for retry backoff ==============================> 
  Waiting 5s for retry backoff =====>------------------------- 
  Waiting 5s for retry backoff ========================>------ 
  Waiting 5s for retry backoff ==============================> 
  Waiting 5s for retry backoff =====>------------------------- 
  Waiting 5s for retry backoff =======>----------------------- 
  Waiting 5s for retry backoff =========================>----- 
  Waiting 5s for retry backoff ==============================> 
  Waiting 5s for retry backoff =====>------------------------- 
  Waiting 5s for retry backoff =========>--------------------- 
  Waiting 5s for retry backoff ===========================>--- 
  Waiting 5s for retry backoff ==============================> 
  Failure at Ergast with https:// connection. Retrying as http://.
  f1dataR: Error getting current season from ergast: Error in `httr2::req_url()`: ! `req` must be an HTTP request object, not a <httr2_response> object.
  
  Falling back to manually determined 'current' season
  Waiting 5s for retry backoff =====>------------------------- 
  Waiting 5s for retry backoff ====================>---------- 
  Waiting 5s for retry backoff ==============================> 
  Waiting 5s for retry backoff =====>------------------------- 
  Waiting 5s for retry backoff =====================>--------- 
  Waiting 5s for retry backoff ==============================> 
  Waiting 5s for retry backoff =====>------------------------- 
  Waiting 5s for retry backoff =======>----------------------- 
  Waiting 5s for retry backoff =========================>----- 
  Waiting 5s for retry backoff ==============================> 
  Waiting 5s for retry backoff =====>------------------------- 
  Waiting 5s for retry backoff =========>--------------------- 
  Waiting 5s for retry backoff ===========================>--- 
  Waiting 5s for retry backoff ==============================> 
  Failure at Ergast with https:// connection. Retrying as http://.
  f1dataR: Error getting current season from ergast: Error in `httr2::req_url()`: ! `req` must be an HTTP request object, not a <httr2_response> object.
  
  Falling back to manually determined 'current' season
  Waiting 5s for retry backoff =====>------------------------- 
  Waiting 5s for retry backoff ==========>-------------------- 
  Waiting 5s for retry backoff ============================>-- 
  Waiting 5s for retry backoff ==============================> 
  Waiting 5s for retry backoff =====>------------------------- 
  Waiting 5s for retry backoff ===============>--------------- 
  Waiting 5s for retry backoff ==============================> 
  Waiting 5s for retry backoff =====>------------------------- 
  Waiting 5s for retry backoff ===================>----------- 
  Waiting 5s for retry backoff ==============================> 
  Waiting 5s for retry backoff =====>------------------------- 
  Waiting 5s for retry backoff =======================>------- 
  Waiting 5s for retry backoff ==============================> 
  Failure at Ergast with https:// connection. Retrying as http://.
  Waiting 5s for retry backoff =====>------------------------- 
  Waiting 5s for retry backoff ========>---------------------- 
  Waiting 5s for retry backoff ==========================>---- 
  Waiting 5s for retry backoff ==============================> 
  Waiting 5s for retry backoff =====>------------------------- 
  Waiting 5s for retry backoff ============>------------------ 
  Waiting 5s for retry backoff ==============================> 
  Waiting 5s for retry backoff =====>------------------------- 
  Waiting 5s for retry backoff ================>-------------- 
  Waiting 5s for retry backoff ==============================> 
  [ 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 ──
  Error in `httr2::req_url(., "http://ergast.com/api/f1")`: `req` must be an HTTP request object, not a <httr2_response> object.
  Backtrace:
       ▆
    1. ├─f1dataR (local) `<fn>`()
    2. │ └─f1dataR:::get_ergast_content(url)
    3. │   └─... %>% httr2::req_perform()
    4. ├─httr2::req_perform(.)
    5. │ └─httr2:::check_request(req)
    6. │   └─httr2:::is_request(req)
    7. ├─httr2::req_url_path_append(., url)
    8. │ └─httr2:::check_request(req)
    9. │   └─httr2:::is_request(req)
   10. └─httr2::req_url(req = .)
   11.   └─httr2:::check_request(req)
   12.     └─httr2:::stop_input_type(...)
   13.       └─rlang::abort(message, ..., call = call, arg = arg)
  
  [ FAIL 1 | WARN 0 | SKIP 6 | PASS 80 ]
  Error: Test failures
  Execution halted