Running ‘testthat.R’ [43s/67s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(tidyhydat)
  > library(dplyr)
  
  Attaching package: 'dplyr'
  
  The following object is masked from 'package:testthat':
  
      matches
  
  The following objects are masked from 'package:stats':
  
      filter, lag
  
  The following objects are masked from 'package:base':
  
      intersect, setdiff, setequal, union
  
  > library(lubridate)
  
  Attaching package: 'lubridate'
  
  The following objects are masked from 'package:base':
  
      date, intersect, setdiff, union
  
  > 
  > test_check("tidyhydat")
  [ FAIL 2 | WARN 0 | SKIP 18 | PASS 200 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (18)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test_realtime_network.R:5:4): realtime_network_meta returns a data frame ──
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached: [dd.weather.gc.ca] Connection timeout after 10001 ms
  Backtrace:
       ▆
    1. ├─testthat::expect_silent(realtime_stations(prov_terr_state_loc = "BC")) at test_realtime_network.R:5:3
    2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ ├─withr::with_output_sink(...)
    5. │   │ │ └─base::force(code)
    6. │   │ ├─base::withCallingHandlers(...)
    7. │   │ └─base::withVisible(code)
    8. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    9. └─tidyhydat::realtime_stations(prov_terr_state_loc = "BC")
   10.   └─httr::GET(realtime_link, httr::user_agent("https://github.com/ropensci/tidyhydat"))
   11.     └─httr:::request_perform(req, hu$handle$handle)
   12.       ├─httr:::request_fetch(req$output, req$url, handle)
   13.       └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   14.         └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test_realtime_plot.R:28:3): throw an error when plotting a lake level station with Flow specified ──
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached: [dd.weather.gc.ca] Connection timeout after 10001 ms
  Backtrace:
      ▆
   1. └─tidyhydat::realtime_dd("08KH011") at test_realtime_plot.R:28:2
   2.   └─base::lapply(station_number, single_realtime_station)
   3.     └─tidyhydat (local) FUN(X[[i]], ...)
   4.       └─httr::GET(infile[1], httr::user_agent("https://github.com/ropensci/tidyhydat"))
   5.         └─httr:::request_perform(req, hu$handle$handle)
   6.           ├─httr:::request_fetch(req$output, req$url, handle)
   7.           └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   8.             └─curl::curl_fetch_memory(url, handle = handle)
  
  [ FAIL 2 | WARN 0 | SKIP 18 | PASS 200 ]
  Error: Test failures
  Execution halted