Running 'test-all.R' [82s]
Running the tests in 'tests/test-all.R' failed.
Complete output:
  > 
  > library(testthat)
  > 
  > # important to replicate errors!
  > rclimateca::clear_cache()
  > 
  > test_check("rclimateca")
  Loading required package: rclimateca
  -- 1. Error: the cache can be cleared (@test-caches.R#10)  ---------------------
  The following errors occurred while downloading/parsing climate data: Download failed
  1: ec_climate_data(27141, timeframe = "monthly", cache = temp_cache) at testthat/test-caches.R:10
  2: stop("The following errors occurred while downloading/parsing climate data: ", paste(errors, 
         collapse = ", "))
  
  -- 2. Error: ec_climate_data_base works as intended (@test-climate_data.R#5)  --
  Unable to connect to http://climate.weather.gc.ca/climate_data/bulk_data_e.html?format=csv&stationID=27141&submit=Download%20Data&timeframe=3: 
    Could not resolve host: climate.weather.gc.ca
  1: ec_climate_data_base(27141, timeframe = "monthly") at testthat/test-climate_data.R:5
  2: restquery(endpoint, .encoding = "UTF-8", format = "csv", stationID = as.numeric(location), 
         submit = "Download Data", timeframe = which(timeframe == c("hourly", "daily", 
             "monthly")), Year = year, Month = month, .cache = cache, .quiet = quiet)
  3: stop("Unable to connect to ", url_string, ": ", as.character(connect))
  
  -- 3. Error: ec_climate_data works as intended (@test-climate_data.R#25)  ------
  The following errors occurred while downloading/parsing climate data: Download failed
  1: ec_climate_data(27141, timeframe = "daily", start = "1999-01-01", end = "1999-12-31") at testthat/test-climate_data.R:25
  2: stop("The following errors occurred while downloading/parsing climate data: ", paste(errors, 
         collapse = ", "))
  
  -- 4. Error: column types for ec_climate_data() are correct (@test-climate_data.
  The following errors occurred while downloading/parsing climate data: Download failed
  1: ec_climate_data(27141, timeframe = "daily", start = "1999-01-01", end = "1999-12-31") at testthat/test-climate_data.R:44
  2: stop("The following errors occurred while downloading/parsing climate data: ", paste(errors, 
         collapse = ", "))
  
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |======                                                                |   8%
    |                                                                            
    |============                                                          |  17%
    |                                                                            
    |==================                                                    |  25%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |=============================                                         |  42%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |=========================================                             |  58%
    |                                                                            
    |===============================================                       |  67%
    |                                                                            
    |====================================================                  |  75%
    |                                                                            
    |==========================================================            |  83%
    |                                                                            
    |================================================================      |  92%
    |                                                                            
    |======================================================================| 100%
  == testthat results  ===========================================================
  OK: 162 SKIPPED: 0 WARNINGS: 1 FAILED: 4
  1. Error: the cache can be cleared (@test-caches.R#10) 
  2. Error: ec_climate_data_base works as intended (@test-climate_data.R#5) 
  3. Error: ec_climate_data works as intended (@test-climate_data.R#25) 
  4. Error: column types for ec_climate_data() are correct (@test-climate_data.R#44) 
  
  Error: testthat unit tests failed
  Execution halted