Running ‘test-all.R’ [16s/33s]
Running the tests in ‘tests/test-all.R’ failed.
Complete output:
  > 
  > library(testthat)
  > 
  > test_check("rclimateca")
  Loading required package: rclimateca
  ── 1. Failure: column types for ec_climate_data() are correct (@test-climate_dat
  hourly$data_quality inherits from `NULL` not `character`.
  
  ── 2. Failure: get mudata function for climate data works (@test-climate_data.R#
  colnames(mudata2::tbl_data(hourly)) not equal to c(...).
  Lengths differ: 7 is not 8
  
  ── 3. Error: all timeframes and output types of data work for a random location 
  Daily data for site PEACE RIVER OVERLAP (53882) failed (years 2015-2015): No data available (zero rows) for call: getClimateMUData(stationID = site$stationid, timeframe = "daily",     year = yearstart:yearend, progress = "none")
  1: expect_true(test_random_locations(n = 1, error_action = stop)) at testthat/test-deprecated_functions.R:90
  2: quasi_label(enquo(object), label)
  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 = "daily", 
             year = yearstart:yearend, progress = "none"))
         dflong <- suppressMessages(getClimateData(site$stationid, timeframe = "daily", 
             year = yearstart:yearend, format = "long", progress = "none"))
         md <- suppressMessages(getClimateMUData(site$stationid, timeframe = "daily", 
             year = yearstart:yearend, progress = "none"))
     }, error = function(err) {
         msg <- sprintf("Daily data for site %s (%s) failed (years %s-%s): %s", site$name, 
             site$stationid, yearstart, yearend, err)
         message(msg)
         error_action(msg)
     }) at testthat/test-deprecated_functions.R:37
  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:53
  
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |===============================================                       |  67%
    |                                                                            
    |======================================================================| 100%
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |===============================================                       |  67%
    |                                                                            
    |======================================================================| 100%
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |======================================================================| 100%
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 186 SKIPPED: 0 FAILED: 3
  1. Failure: column types for ec_climate_data() are correct (@test-climate_data.R#123) 
  2. Failure: get mudata function for climate data works (@test-climate_data.R#463) 
  3. 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