Running ‘testthat.R’ [7s/11s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(dttr2)
  > 
  > test_check("dttr2")
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On Linux (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure (test-add.R:8:3): add_years.Date ────────────────────────────────────
  dtt_add_years(as.Date(c("2000-01-01", "2002-01-01")), 2L) not identical to as.Date(c("2002-01-01", "2004-01-01")).
  names for target but not for current
  ── Failure (test-add.R:13:3): add_years.Date ───────────────────────────────────
  dtt_add_years(as.Date(c("2000-01-01", "2002-01-01")), 2:3) not identical to as.Date(c("2002-01-01", "2005-01-01")).
  names for target but not for current
  ── Failure (test-add.R:18:3): add_years.Date ───────────────────────────────────
  dtt_add_years(c(as.Date("2002-01-01"), NA), 3L) not identical to c(as.Date("2005-01-01"), NA).
  names for target but not for current
  ── Failure (test-add.R:22:3): add_years.Date ───────────────────────────────────
  dtt_add_years(c(as.Date("2002-01-01"), NA), -3L) not identical to c(as.Date("1999-01-01"), NA).
  names for target but not for current
  ── Failure (test-add.R:64:3): add_months.Date ──────────────────────────────────
  dtt_add_months(as.Date(c("2000-01-01", "2002-01-01")), 2L) not identical to as.Date(c("2000-03-01", "2002-03-01")).
  names for target but not for current
  ── Failure (test-add.R:69:3): add_months.Date ──────────────────────────────────
  dtt_add_months(as.Date(c("2000-01-01", "2002-01-01")), 2:3) not identical to as.Date(c("2000-03-01", "2002-04-01")).
  names for target but not for current
  ── Failure (test-add.R:74:3): add_months.Date ──────────────────────────────────
  dtt_add_months(c(as.Date("2002-01-01"), NA), 3L) not identical to c(as.Date("2002-04-01"), NA).
  names for target but not for current
  ── Failure (test-add.R:78:3): add_months.Date ──────────────────────────────────
  dtt_add_months(c(as.Date("2002-01-01"), NA), -3L) not identical to c(as.Date("2001-10-01"), NA).
  names for target but not for current
  ── Failure (test-subtract.R:8:3): subtract_years.Date ──────────────────────────
  dtt_subtract_years(as.Date(c("2000-01-01", "2002-01-01")), 2L) not identical to as.Date(c("1998-01-01", "2000-01-01")).
  names for target but not for current
  ── Failure (test-subtract.R:13:3): subtract_years.Date ─────────────────────────
  dtt_subtract_years(as.Date(c("2000-01-01", "2002-01-01")), 2:3) not identical to as.Date(c("1998-01-01", "1999-01-01")).
  names for target but not for current
  ── Failure (test-subtract.R:18:3): subtract_years.Date ─────────────────────────
  dtt_subtract_years(c(as.Date("2002-01-01"), NA), 3L) not identical to c(as.Date("1999-01-01"), NA).
  names for target but not for current
  ── Failure (test-subtract.R:22:3): subtract_years.Date ─────────────────────────
  dtt_subtract_years(c(as.Date("2002-01-01"), NA), -3L) not identical to c(as.Date("2005-01-01"), NA).
  names for target but not for current
  ── Failure (test-subtract.R:64:3): subtract_months.Date ────────────────────────
  dtt_subtract_months(as.Date(c("2000-01-01", "2002-01-01")), 2L) not identical to as.Date(c("1999-11-01", "2001-11-01")).
  names for target but not for current
  ── Failure (test-subtract.R:69:3): subtract_months.Date ────────────────────────
  dtt_subtract_months(as.Date(c("2000-01-01", "2002-01-01")), 2:3) not identical to as.Date(c("1999-11-01", "2001-10-01")).
  names for target but not for current
  ── Failure (test-subtract.R:74:3): subtract_months.Date ────────────────────────
  dtt_subtract_months(c(as.Date("2002-01-01"), NA), 3L) not identical to c(as.Date("2001-10-01"), NA).
  names for target but not for current
  ── Failure (test-subtract.R:78:3): subtract_months.Date ────────────────────────
  dtt_subtract_months(c(as.Date("2002-01-01"), NA), -3L) not identical to c(as.Date("2002-04-01"), NA).
  names for target but not for current
  
  [ FAIL 16 | WARN 0 | SKIP 1 | PASS 962 ]
  Error: Test failures
  Execution halted