Running 'testthat.R' [190s]
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)
  Loading required package: timechange
  
  Attaching package: 'lubridate'
  
  The following objects are masked from 'package:base':
  
      date, intersect, setdiff, union
  
  > 
  > test_check("tidyhydat")
  [ FAIL 4 | WARN 1021 | SKIP 19 | PASS 198 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (19)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_realtime_network.R:3'): realtime_network_meta returns a data frame ──
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached: [dd.weather.gc.ca] Connection timed out after 10002 milliseconds
  Backtrace:
       ▆
    1. ├─testthat::expect_silent(realtime_stations(prov_terr_state_loc = "BC")) at test_realtime_network.R:3: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:26'): 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 timed out after 10006 milliseconds
  Backtrace:
      ▆
   1. └─tidyhydat::realtime_dd("08KH011") at test_realtime_plot.R:26: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)
  ── Error ('test_search.R:3'): search_stn_number returns a dataframe ────────────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached: [dd.weather.gc.ca] Connection timed out after 10002 milliseconds
  Backtrace:
       ▆
    1. ├─testthat::expect_s3_class(...) at test_search.R:3:2
    2. │ └─testthat::quasi_label(enquo(object), arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─tidyhydat::search_stn_number("08HF", hydat_path = hy_test_db())
    5. │ ├─... %>% ...
    6. │ └─tidyhydat::realtime_stations()
    7. │   └─httr::GET(realtime_link, httr::user_agent("https://github.com/ropensci/tidyhydat"))
    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. ├─dplyr::select(...)
   13. ├─dplyr::distinct(., .data$STATION_NUMBER, .keep_all = TRUE)
   14. └─dplyr::bind_rows(., suppressMessages(hy_stations(hydat_path = hydat_con)))
   15.   └─rlang::list2(...)
  ── Error ('test_search.R:9'): search_stn_name returns a dataframe ──────────────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached: [dd.weather.gc.ca] Connection timed out after 10001 milliseconds
  Backtrace:
       ▆
    1. ├─testthat::expect_s3_class(...) at test_search.R:9:2
    2. │ └─testthat::quasi_label(enquo(object), arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─tidyhydat::search_stn_name("Saskatchewan", hydat_path = hy_test_db())
    5. │ ├─... %>% ...
    6. │ └─tidyhydat::realtime_stations()
    7. │   └─httr::GET(realtime_link, httr::user_agent("https://github.com/ropensci/tidyhydat"))
    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. ├─dplyr::select(...)
   13. ├─dplyr::distinct(., .data$STATION_NUMBER, .keep_all = TRUE)
   14. └─dplyr::bind_rows(., suppressMessages(hy_stations(hydat_path = hydat_con)))
   15.   └─rlang::list2(...)
  
  [ FAIL 4 | WARN 1021 | SKIP 19 | PASS 198 ]
  Error: Test failures
  Execution halted