Running 'testthat.R' [5s/7s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(gravitas)
  > 
  > test_check("gravitas")
  -- 1. Error: tsibble output (@test-create_gran.R#41)  --------------------------
  argument is of length zero
  Backtrace:
   1. testthat::expect_is(...)
   4. gravitas::create_gran(x, "hour_day")
   5. gravitas:::temp_create_gran(.data, gran1, label, ...)
  
  -- 2. Error: create grans creates a factor  ------------------------------------
  argument is of length zero
  Backtrace:
   1. gravitas::create_gran(x, "hhour_week")
   2. gravitas:::temp_create_gran(.data, gran1, label, ...)
  
  -- 3. Error: gran_advice class (@test-gran_advice.R#36)  -----------------------
  argument is of length zero
  Backtrace:
    1. testthat::expect_is(...)
    4. gravitas::gran_advice(x, "hour_day", "hhour_hour")
    5. gravitas::is_harmony(.data, gran1, gran2, hierarchy_tbl)
    6. gravitas:::gran_tbl(.data, gran1, gran2, hierarchy_tbl)
   12. gravitas::create_gran(., gran1, hierarchy_tbl)
   15. gravitas:::temp_create_gran(.data, gran1, label, ...)
  
  -- 4. Error: tibble output (@test-harmony.R#43)  -------------------------------
  argument is of length zero
  Backtrace:
    1. testthat::expect_is(...)
    4. gravitas::harmony(x, lgran = "hour", ugran = "week")
   11. gravitas::create_gran(., set1[i], hierarchy_tbl)
   14. gravitas:::temp_create_gran(.data, gran1, label, ...)
  
  -- 5. Error: norun check runs in create_gran (@test-harmony.R#48)  -------------
  argument is of length zero
  Backtrace:
    1. testthat::expect_equal(...)
   10. gravitas::harmony(., ugran = "day", filter_in = "wknd_wday")
   13. gravitas::search_gran(...)
  
  -- 6. Error: character output (@test-is_harmony.R#27)  -------------------------
  argument is of length zero
  Backtrace:
    1. testthat::expect_is(is_harmony(x, "hour_day", "day_week"), "character")
    4. gravitas::is_harmony(x, "hour_day", "day_week")
    5. gravitas:::gran_tbl(.data, gran1, gran2, hierarchy_tbl)
   11. gravitas::create_gran(., gran1, hierarchy_tbl)
   14. gravitas:::temp_create_gran(.data, gran1, label, ...)
  
  -- 7. Error: character output (@test-prob_plot.R#29)  --------------------------
  argument is of length zero
  Backtrace:
    1. testthat::expect_is(...)
    4. gravitas::prob_plot(x, "hour_day", "hhour_hour")
    5. gravitas::gran_advice(.data, gran1, gran2, hierarchy_tbl, ...)
    6. gravitas::is_harmony(.data, gran1, gran2, hierarchy_tbl)
    7. gravitas:::gran_tbl(.data, gran1, gran2, hierarchy_tbl)
   13. gravitas::create_gran(., gran1, hierarchy_tbl)
   16. gravitas:::temp_create_gran(.data, gran1, label, ...)
  
  == testthat results  ===========================================================
  [ OK: 120 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 7 ]
  1. Error: tsibble output (@test-create_gran.R#41) 
  2. Error: create grans creates a factor 
  3. Error: gran_advice class (@test-gran_advice.R#36) 
  4. Error: tibble output (@test-harmony.R#43) 
  5. Error: norun check runs in create_gran (@test-harmony.R#48) 
  6. Error: character output (@test-is_harmony.R#27) 
  7. Error: character output (@test-prob_plot.R#29) 
  
  Error: testthat unit tests failed
  Execution halted