Running ‘testthat.R’ [0m/10m]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(SLOS)
  > 
  > test_check("SLOS")
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 2 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-Evaluation.R:5:3'): SLOS generates expected outputs ────────────
  <curl_error_http2_stream/curl_error/error/condition>
  Error in `curl::curl_fetch_disk(url, x$path, handle = handle)`: Stream error in the HTTP/2 framing layer [release-assets.githubusercontent.com]:
  HTTP/2 stream 1 was not closed cleanly: PROTOCOL_ERROR (err 1)
  Backtrace:
       ▆
    1. ├─base::suppressWarnings(SLOS::SLOS(mock_data)) at test-Evaluation.R:5:3
    2. │ └─base::withCallingHandlers(...)
    3. ├─SLOS::SLOS(mock_data)
    4. │ └─SLOS::predict_and_evaluate(data)
    5. │   └─SLOS::load_SLOSModel()
    6. │     └─httr::GET(url, write_disk(temp_file, overwrite = TRUE))
    7. │       └─httr:::request_perform(req, hu$handle$handle)
    8. │         ├─httr:::request_fetch(req$output, req$url, handle)
    9. │         └─httr:::request_fetch.write_disk(req$output, req$url, handle)
   10. │           └─curl::curl_fetch_disk(url, x$path, handle = handle)
   11. └─curl:::raise_libcurl_error(...)
  ── Error ('test-Prediction.R:3:3'): predict_and_evaluate works as expected ─────
  <curl_error_http2_stream/curl_error/error/condition>
  Error in `curl::curl_fetch_disk(url, x$path, handle = handle)`: Stream error in the HTTP/2 framing layer [release-assets.githubusercontent.com]:
  HTTP/2 stream 3 was not closed cleanly: PROTOCOL_ERROR (err 1)
  Backtrace:
      ▆
   1. ├─SLOS::predict_and_evaluate(sampled_data) at test-Prediction.R:3:3
   2. │ └─SLOS::load_SLOSModel()
   3. │   └─httr::GET(url, write_disk(temp_file, overwrite = TRUE))
   4. │     └─httr:::request_perform(req, hu$handle$handle)
   5. │       ├─httr:::request_fetch(req$output, req$url, handle)
   6. │       └─httr:::request_fetch.write_disk(req$output, req$url, handle)
   7. │         └─curl::curl_fetch_disk(url, x$path, handle = handle)
   8. └─curl:::raise_libcurl_error(...)
  
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 2 ]
  Error: Test failures
  Execution halted