Running 'testthat.R' [193s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(weathercan)
  > 
  > Sys.setenv("R_TESTS" = "")
  > 
  > test_check("weathercan")
  -- 1. Error: normals_raw() download normals as character  ----------------------
  cannot open the connection
  Backtrace:
    1. testthat::expect_silent(normals_raw(url))
    9. weathercan:::normals_raw(url)
   10. base::readLines(con <- url(loc, encoding = "latin1"), n = nrows)
  
  -- 2. Error: normals_extract() / frost_extract() extract data (@test_08_normals.
  cannot open the connection
  Backtrace:
    1. base::paste0(...)
    9. weathercan:::normals_raw(.)
   10. base::readLines(con <- url(loc, encoding = "latin1"), n = nrows)
  
  -- 3. Error: normals_format()/frost_format() format data to correct class (@test
  cannot open the connection
  Backtrace:
    1. base::paste0(...)
    9. weathercan:::normals_raw(.)
   10. base::readLines(con <- url(loc, encoding = "latin1"), n = nrows)
  
  -- 4. Error: normals_dl() downloads normals/frost dates as tibble  -------------
  The link in `options("weathecan.urls.normals")` must point to the site where climate normals are stored by province
  Backtrace:
   1. testthat::expect_silent(normals_dl(climate_id = "5010480"))
   9. weathercan::normals_dl(climate_id = "5010480")
  
  == testthat results  ===========================================================
  [ OK: 544 | SKIPPED: 5 | WARNINGS: 2 | FAILED: 4 ]
  1. Error: normals_raw() download normals as character 
  2. Error: normals_extract() / frost_extract() extract data (@test_08_normals.R#26) 
  3. Error: normals_format()/frost_format() format data to correct class (@test_08_normals.R#36) 
  4. Error: normals_dl() downloads normals/frost dates as tibble 
  
  Error: testthat unit tests failed
  In addition: Warning messages:
  1: In for (i in seq_len(n)) { :
    closing unused connection 6 (https://dd.meteo.gc.ca/climate/observations/normals/csv/1981-2010/MB/climate_normals_MB_5010480_1981-2010.csv)
  2: In for (i in seq_len(n)) { :
    closing unused connection 4 (https://dd.meteo.gc.ca/climate/observations/normals/csv/1981-2010/MB/climate_normals_MB_5010480_1981-2010.csv)
  3: In for (i in seq_len(n)) { :
    closing unused connection 5 (https://dd.meteo.gc.ca/climate/observations/normals/csv/1981-2010/MB/climate_normals_MB_5010480_1981-2010.csv)
  Execution halted