Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(tibbletime)
  
  Attaching package: 'tibbletime'
  
  The following object is masked from 'package:stats':
  
      filter
  
  > 
  > test_check("tibbletime")
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 139 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_ceiling_index.R:20'): Ceiling all Date/Datetime to yearly results in the same answer ──
  <purrr_error_indexed/rlang_error/error/condition>
  Error in `map(.x, .f, ...)`: ℹ In index: 1.
  ℹ With name: date.
  Caused by error in `validate_rounding_nunit()`:
  ! Invalid unit specification 'yearly' (at ly)
  Backtrace:
       ▆
    1. ├─purrr::map_dfc(...) at test_ceiling_index.R:20:2
    2. │ └─purrr::map(.x, .f, ...)
    3. │   └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
    4. │     ├─purrr:::with_indexed_errors(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     ├─purrr:::call_with_cleanup(...)
    7. │     └─tibbletime (local) .f(.x[[i]], ...)
    8. │       ├─ceiling_index(.x, "yearly") %>% to_posixct_numeric
    9. │       ├─tibbletime::ceiling_index(.x, "yearly")
   10. │       └─tibbletime:::ceiling_index.default(.x, "yearly")
   11. │         └─lubridate::ceiling_date(x, unit)
   12. │           └─lubridate:::.normalize_multi_week_unit(unit)
   13. │             └─timechange:::parse_units(unit)
   14. │               └─timechange:::validate_rounding_nunit(.Call(C_parse_unit, as.character(unit)))
   15. ├─tibbletime:::to_posixct_numeric(.)
   16. └─base::.handleSimpleError(...)
   17.   └─purrr (local) h(simpleError(msg, call))
   18.     └─cli::cli_abort(...)
   19.       └─rlang::abort(...)
  ── Error ('test_floor_index.R:20'): Floor all Date/Datetime to yearly results in the same answer ──
  <purrr_error_indexed/rlang_error/error/condition>
  Error in `map(.x, .f, ...)`: ℹ In index: 1.
  ℹ With name: date.
  Caused by error in `validate_rounding_nunit()`:
  ! Invalid unit specification 'yearly' (at ly)
  Backtrace:
       ▆
    1. ├─purrr::map_dfc(...) at test_floor_index.R:20:2
    2. │ └─purrr::map(.x, .f, ...)
    3. │   └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
    4. │     ├─purrr:::with_indexed_errors(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     ├─purrr:::call_with_cleanup(...)
    7. │     └─tibbletime (local) .f(.x[[i]], ...)
    8. │       ├─floor_index(.x, "yearly") %>% to_posixct_numeric
    9. │       ├─tibbletime::floor_index(.x, "yearly")
   10. │       └─tibbletime:::floor_index.default(.x, "yearly")
   11. │         └─lubridate::floor_date(x, unit)
   12. │           └─lubridate:::.normalize_multi_week_unit(unit)
   13. │             └─timechange:::parse_units(unit)
   14. │               └─timechange:::validate_rounding_nunit(.Call(C_parse_unit, as.character(unit)))
   15. ├─tibbletime:::to_posixct_numeric(.)
   16. └─base::.handleSimpleError(...)
   17.   └─purrr (local) h(simpleError(msg, call))
   18.     └─cli::cli_abort(...)
   19.       └─rlang::abort(...)
  
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 139 ]
  Error: Test failures
  Execution halted