Running ‘test-all.R’ [18s/61s]
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
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |======                                                                |   8%
    |                                                                            
    |============                                                          |  17%
    |                                                                            
    |==================                                                    |  25%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |=============================                                         |  42%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |=========================================                             |  58%
    |                                                                            
    |===============================================                       |  67%
    |                                                                            
    |====================================================                  |  75%
    |                                                                            
    |==========================================================            |  83%
    |                                                                            
    |================================================================      |  92%
    |                                                                            
    |======================================================================| 100%
  ── 1. Error: all timeframes and output types of data work for a random location 
  Hourly data for site DEVILS HEAD (AUT) (7084) failed (year 402): No data available (zero rows) for call: getClimateMUData(stationID = site$stationid, timeframe = "hourly",     year = theyear)
  1: expect_true(test_random_locations(n = 1, error_action = stop)) at testthat/test-deprecated_functions.R:90
  2: quasi_label(enquo(object), label, arg = "object")
  3: eval_bare(get_expr(quo), get_env(quo))
  4: test_random_locations(n = 1, error_action = stop)
  5: test_locations(id = ids, error_action = error_action) at testthat/test-deprecated_functions.R:84
  6: tryCatch({
         dfwide <- suppressMessages(getClimateData(site$stationid, timeframe = "hourly", 
             year = theyear, progress = "none"))
         dflong <- suppressMessages(getClimateData(site$stationid, timeframe = "hourly", 
             format = "long", year = theyear, progress = "none"))
         md <- suppressMessages(getClimateMUData(site$stationid, timeframe = "hourly", 
             year = theyear))
     }, error = function(err) {
         msg <- sprintf("Hourly data for site %s (%s) failed (year %s): %s", site$name, 
             site$stationid, theyear, err)
         message(msg)
         error_action(msg)
     }) at testthat/test-deprecated_functions.R:62
  7: tryCatchList(expr, classes, parentenv, handlers)
  8: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  9: value[[3L]](cond)
  10: error_action(msg) at testthat/test-deprecated_functions.R:74
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 185 | SKIPPED: 0 | WARNINGS: 2 | FAILED: 1 ]
  1. Error: all timeframes and output types of data work for a random location (@test-deprecated_functions.R#90) 
  
  Error: testthat unit tests failed
  Execution halted