Running ‘test-all.R’ [13s/36s]
Running the tests in ‘tests/test-all.R’ failed.
Complete output:
  > 
  > library(testthat)
  > 
  > test_check("rclimateca")
  Loading required package: rclimateca
  ── 1. Failure: dates and times are parsed correctly (@test-climate_data.R#161)  
  diff(range(hourly_subset$date_time_local)) == lubridate::dhours(23) isn't true.
  
  ── 2. Failure: dates and times are parsed correctly (@test-climate_data.R#164)  
  diff(range(hourly_subset$date_time_utc)) == lubridate::dhours(23) isn't true.
  
  ── 3. Failure: dates and times are parsed correctly (@test-climate_data.R#167)  
  diff(range(hourly_subset$time_lst)) == lubridate::dhours(23) isn't true.
  
  ── 4. Error: get mudata function for climate data works (@test-climate_data.R#44
  Duplicate data in data table
  1: ec_climate_mudata(27141, timeframe = "hourly", start = "1999-07-01", end = "1999-07-31") at testthat/test-climate_data.R:448
  2: mudata2::mudata(data = md_data, locations = md_locations, params = md_params, datasets = md_datasets, 
         x_columns = x_columns, more_tbls = list(flag_info = climate_flags))
  3: validate_mudata(md, action = validate)
  4: .checkunique(md$data, "data", "dataset", "location", "param", x_columns, action = action)
  5: action(sprintf("Duplicate %s in %s table", context, context))
  
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |===============================================                       |  67%
    |                                                                            
    |======================================================================| 100%
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |===============================================                       |  67%
    |                                                                            
    |======================================================================| 100%
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |======================================================================| 100%
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 178 SKIPPED: 0 FAILED: 4
  1. Failure: dates and times are parsed correctly (@test-climate_data.R#161) 
  2. Failure: dates and times are parsed correctly (@test-climate_data.R#164) 
  3. Failure: dates and times are parsed correctly (@test-climate_data.R#167) 
  4. Error: get mudata function for climate data works (@test-climate_data.R#448) 
  
  Error: testthat unit tests failed
  Execution halted