Running ‘testthat.R’ [53s/115s]
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")
  ── Skip (test-hy-plot.R:4:3): plot fails with more than four stations ──────────
  Reason: On CRAN
  
  ── Skip (test_daily_mean.R:4:3): daily_mean takes a range of values for yesterda
  Reason: On CRAN
  
  ── Skip (test_download_realtime.R:5:4): realtime_dd returns the correct data hea
  Reason: On CRAN
  
  ── Skip (test_download_realtime.R:14:3): realtime_dd can download stations from 
  Reason: On CRAN
  
  ── Skip (test_download_realtime.R:25:3): realtime_dd can download stations from 
  Reason: On CRAN
  
  ── Skip (test_download_realtime.R:31:3): When station_number is ALL there is an 
  Reason: On CRAN
  
  ── Skip (test_download_realtime.R:36:3): realtime_dd works when station is not r
  Reason: On CRAN
  
  ── Skip (test_hy_daily.R:5:3): hy_daily accepts a level only station argument ──
  Reason: On CRAN
  
  ── Skip (test_hy_daily.R:12:3): hy_daily accepts multiple station arguments ────
  Reason: On CRAN
  
  ── Skip (test_hy_daily.R:22:3): hy_daily generates right column names ──────────
  Reason: On CRAN
  
  ── Skip (test_realtime_add_local_datetime.R:4:3): realtime_add_local_datetime ad
  Reason: On CRAN
  
  ── Skip (test_realtime_add_local_datetime.R:12:3): realtime_add_local_datetime a
  Reason: On CRAN
  
  ── Skip (test_realtime_add_local_datetime.R:20:3): when set_tz is supplied, it i
  Reason: On CRAN
  
  ── ERROR (test_realtime_network.R:5:4): realtime_network_meta returns a data fra
  Error: Timeout was reached: [dd.weather.gc.ca] Resolving timed out after 10001 milliseconds
  Backtrace:
       █
    1. ├─testthat::expect_silent(realtime_stations(prov_terr_state_loc = "BC")) test_realtime_network.R:5:3
    2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
    3. │   ├─testthat:::.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)
  
  ── Skip (test_realtime_plot.R:5:3): realtime_plot will plot a lake only station 
  Reason: On CRAN
  
  ── Skip (test_realtime_plot.R:11:3): realtime_plot will be silent is Parameter i
  Reason: On CRAN
  
  ── Skip (test_realtime_plot.R:17:3): realtime_plot will be silent when a river s
  Reason: On CRAN
  
  ── Skip (test_realtime_plot.R:23:3): realtime_plot will throw an error when try 
  Reason: On CRAN
  
  ── Skip (test_utils.R:29:3): downloading hydat fails behind a proxy server with 
  Reason: On CRAN
  
  ── Skipped tests  ──────────────────────────────────────────────────────────────
  ● On CRAN (18)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  ERROR (test_realtime_network.R:5:4): realtime_network_meta returns a data frame
  
  [ FAIL 1 | WARN 0 | SKIP 18 | PASS 202 ]
  Error: Test failures
  Execution halted