Running ‘spelling.R’ [0s/0s]
  Running ‘testthat.R’ [176s/229s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # tests/testthat.R
  > 
  > library(testthat)
  > library(ffaframework) 
  > test_check("ffaframework")
  Saving _problems/test-data-loading-11.R
  Saving _problems/test-data-loading-31.R
  [ FAIL 2 | WARN 0 | SKIP 24 | PASS 980 ]
  
  ══ Skipped tests (24) ══════════════════════════════════════════════════════════
  • On CRAN (9): 'test-select-zstatistic.R:36:2',
    'test-select-zstatistic.R:69:2', 'test-select-zstatistic.R:102:2',
    'test-select-zstatistic.R:135:2', 'test-select-zstatistic.R:168:2',
    'test-uncertainty-bootstrap.R:24:2', 'test-uncertainty-bootstrap.R:104:2',
    'test-uncertainty-rfgpl.R:47:2', 'test-uncertainty-rfpl.R:113:2'
  • Skip on R CMD check (15): 'test-plots.R:3:2', 'test-plots.R:30:2',
    'test-plots.R:50:2', 'test-plots.R:77:2', 'test-plots.R:104:2',
    'test-plots.R:124:2', 'test-plots.R:142:2', 'test-plots.R:161:2',
    'test-plots.R:175:2', 'test-plots.R:190:2', 'test-plots.R:209:2',
    'test-plots.R:241:2', 'test-plots.R:262:2', 'test-plots.R:318:2',
    'test-plots.R:337:2'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-data-loading.R:11:2'): data-local.R and data-geomet.R work properly and produce same results ──
  <curl_error_couldnt_connect/curl_error/error/condition>
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Could not connect to server [api.weather.gc.ca]:
  Failed to connect to api.weather.gc.ca port 443 after 112 ms: Could not connect to server
  Backtrace:
      ▆
   1. ├─ffaframework::data_geomet("07BE001") at test-data-loading.R:11:9
   2. │ └─httr::GET(url, query = params)
   3. │   └─httr:::request_perform(req, hu$handle$handle)
   4. │     ├─httr:::request_fetch(req$output, req$url, handle)
   5. │     └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   6. │       └─curl::curl_fetch_memory(url, handle = handle)
   7. └─curl:::raise_libcurl_error(...)
  ── Failure ('test-data-loading.R:31:2'): data-local.R and data-geomet.R throws errors given invalid arguments ──
  `data_geomet("invalid")` threw an error with unexpected message.
  Expected match: "No data exists for station with ID 'invalid'"
  Actual message: "Could not connect to server [api.weather.gc.ca]:\nFailed to connect to api.weather.gc.ca port 443 after 107 ms: Could not connect to server"
  Backtrace:
       ▆
    1. ├─testthat::expect_error(data_geomet("invalid"), "No data exists for station with ID 'invalid'") at test-data-loading.R:31:9
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─ffaframework::data_geomet("invalid")
    7. │ └─httr::GET(url, query = params)
    8. │   └─httr:::request_perform(req, hu$handle$handle)
    9. │     ├─httr:::request_fetch(req$output, req$url, handle)
   10. │     └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   11. │       └─curl::curl_fetch_memory(url, handle = handle)
   12. └─curl:::raise_libcurl_error(...)
  
  [ FAIL 2 | WARN 0 | SKIP 24 | PASS 980 ]
  Error:
  ! Test failures.
  Execution halted