Running ‘testthat.R’ [110s/434s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(weathercan)
  > 
  > Sys.setenv("R_TESTS" = "")
  > 
  > test_check("weathercan")
  ── 1. Error: stations_normals() gets normals info (@test_03_station_dl.R#6)  ───
  Timeout was reached: [dd.weather.gc.ca] Resolving timed out after 10000 milliseconds
  1: expect_silent(n <- stations_normals(years = "1981-2010")) %>% expect_is("character") at testthat/test_03_station_dl.R:6
  2: eval(lhs, parent, parent)
  3: eval(lhs, parent, parent)
  4: expect_silent(n <- stations_normals(years = "1981-2010"))
  5: quasi_capture(enquo(object), NULL, evaluate_promise)
  6: .capture(act$val <- eval_bare(get_expr(.quo), get_env(.quo)), ...)
  7: withr::with_output_sink(temp, withCallingHandlers(withVisible(code), warning = handle_warning, 
         message = handle_message))
  8: force(code)
  9: withCallingHandlers(withVisible(code), warning = handle_warning, message = handle_message)
  10: withVisible(code)
  ...
  28: eval(lhs, parent, parent)
  29: xml2::read_html(loc)
  30: read_html.default(loc)
  31: suppressWarnings(read_xml(x, encoding = encoding, ..., as_html = TRUE, options = options))
  32: withCallingHandlers(expr, warning = function(w) invokeRestart("muffleWarning"))
  33: read_xml(x, encoding = encoding, ..., as_html = TRUE, options = options)
  34: read_xml.character(x, encoding = encoding, ..., as_html = TRUE, options = options)
  35: read_xml.connection(con, encoding = encoding, ..., as_html = as_html, base_url = x, 
         options = options)
  36: open(x, "rb")
  37: open.connection(x, "rb")
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 565 | SKIPPED: 5 | WARNINGS: 0 | FAILED: 1 ]
  1. Error: stations_normals() gets normals info (@test_03_station_dl.R#6) 
  
  Error: testthat unit tests failed
  In addition: Warning message:
  In for (ns in list(...)) namespaceImportFrom(self, asNamespace(ns),  :
    closing unused connection 5 (https://dd.meteo.gc.ca/climate/observations/normals/csv/1981-2010/NL)
  Execution halted