Running ‘test-all.R’ [2s/11s]
Running the tests in ‘tests/test-all.R’ failed.
Complete output:
  > 
  > library(testthat)
  > 
  > test_check("rclimateca")
  Loading required package: rclimateca
  
    |                                                                            
    |                                                                      |   0%
  1. Error: all timeframes and output types of data work for a random location (@test_allstations.R#65) 
  Monthly data for site NORTH VANCOUVER HOLYROOD (824) failed: Download failed for args stationID=824/Year=NA/Month=NA/timeframe=monthly/.cache=ec.cache/.quiet=TRUE: 
    Download failed
  
  1: expect_true(test_random_locations(n = 1, error_action = stop)) at testthat/test_allstations.R:65
  2: expect(identical(as.vector(object), TRUE), sprintf("%s isn't true.", lab), info = info)
  3: as.expectation(exp, ..., srcref = srcref)
  4: identical(as.vector(object), TRUE)
  5: as.vector(object)
  6: test_random_locations(n = 1, error_action = stop)
  7: tryCatch({
         dfwide <- getClimateData(site$stationid, timeframe = "monthly")
         dflong <- getClimateData(site$stationid, timeframe = "monthly", format = "long")
         md <- getClimateMUData(site$stationid, timeframe = "monthly")
     }, error = function(err) {
         error_action(sprintf("Monthly data for site %s (%s) failed: %s", site$name, site$stationid, 
             err))
     }) at testthat/test_allstations.R:18
  8: tryCatchList(expr, classes, parentenv, handlers)
  9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: value[[3L]](cond)
  11: error_action(sprintf("Monthly data for site %s (%s) failed: %s", site$name, site$stationid, 
         err)) at testthat/test_allstations.R:24
  
  testthat results ================================================================
  OK: 0 SKIPPED: 0 FAILED: 1
  1. Error: all timeframes and output types of data work for a random location (@test_allstations.R#65) 
  
  Error: testthat unit tests failed
  Execution halted