Running ‘testthat.R’ [51s/78s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(admiral)
  > 
  > test_check("admiral")
  [1] "N" "Y" NA 
  [ FAIL 3 | WARN 0 | SKIP 0 | PASS 495 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-deprecation.R:152'): date_source: errors when date_imputation is specified ──
  `date_source(dataset_name = "ae", date = ASTDTM, date_imputation = "first")` threw an error with unexpected message.
  Expected match: "The `date_imputation` argument of `date_source\\(\\)` .* deprecated .* admiral 0.8.0.*\nPlease use `derive_vars_dtm\\(\\)` to convert DTC variables to datetime variables in the dataset."
  Actual message: "The `date_imputation` argument of `date_source()` was deprecated in\nadmiral 0.8.0 and is now defunct.\nℹ Please use `derive_vars_dtm()` to convert DTC variables to datetime variables\n  in the dataset."
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-deprecation.R:152:2
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat (local) .capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─admiral::date_source(dataset_name = "ae", date = ASTDTM, date_imputation = "first")
   7.   └─lifecycle::deprecate_stop(...)
   8.     └─lifecycle:::deprecate_stop0(msg)
   9.       └─rlang::cnd_signal(...)
  ── Failure ('test-deprecation.R:167'): date_source: errors when time_imputation is specified ──
  `date_source(dataset_name = "ae", date = ASTDTM, time_imputation = "first")` threw an error with unexpected message.
  Expected match: "The `time_imputation` argument of `date_source\\(\\)` .* deprecated .* admiral 0.8.0.*\nPlease use `derive_vars_dtm\\(\\)` to convert DTC variables to datetime variables in the dataset."
  Actual message: "The `time_imputation` argument of `date_source()` was deprecated in\nadmiral 0.8.0 and is now defunct.\nℹ Please use `derive_vars_dtm()` to convert DTC variables to datetime variables\n  in the dataset."
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-deprecation.R:167:2
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat (local) .capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─admiral::date_source(dataset_name = "ae", date = ASTDTM, time_imputation = "first")
   7.   └─lifecycle::deprecate_stop(...)
   8.     └─lifecycle:::deprecate_stop0(msg)
   9.       └─rlang::cnd_signal(...)
  ── Failure ('test-deprecation.R:182'): date_source: errors when preserve is specified ──
  `date_source(dataset_name = "ae", date = ASTDTM, preserve = TRUE)` threw an error with unexpected message.
  Expected match: "The `preserve` argument of `date_source\\(\\)` .* deprecated .* admiral 0.8.0.*\nPlease use `derive_vars_dtm\\(\\)` to convert DTC variables to datetime variables in the dataset."
  Actual message: "The `preserve` argument of `date_source()` was deprecated in admiral\n0.8.0 and is now defunct.\nℹ Please use `derive_vars_dtm()` to convert DTC variables to datetime variables\n  in the dataset."
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-deprecation.R:182:2
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat (local) .capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─admiral::date_source(dataset_name = "ae", date = ASTDTM, preserve = TRUE)
   7.   └─lifecycle::deprecate_stop(...)
   8.     └─lifecycle:::deprecate_stop0(msg)
   9.       └─rlang::cnd_signal(...)
  
  [ FAIL 3 | WARN 0 | SKIP 0 | PASS 495 ]
  Error: Test failures
  Execution halted