Running ‘testthat.R’ [16s/29s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(padr)
  > 
  > test_check("padr")
  [ FAIL 4 | WARN 2 | SKIP 0 | PASS 608 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test_formatting_funcs.R:106'): format_interval throws errors ──────
  `fse(span_date(2016, 2018))` threw an error.
  Message: invalid 'tz' value
  Class:   simpleError/error/condition
  Backtrace:
       ▆
    1. ├─testthat::expect_error(fse(span_date(2016, 2018)), NA) at test_formatting_funcs.R:106: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. └─padr (local) fse(span_date(2016, 2018))
    7.   └─base::strftime(x, start_format, tz = attr(x, "tzone"))
    8.     ├─base::format(...)
    9.     ├─base::as.POSIXlt(x, tz = tz)
   10.     └─base::as.POSIXlt.Date(x, tz = tz)
   11.       └─base::as.POSIXlt(.Internal(Date2POSIXlt(x, tz)), tz = tz)
  ── Error ('test_formatting_funcs.R:113'): format_interval formatting ───────────
  Error in `as.POSIXlt(.Internal(Date2POSIXlt(x, tz)), tz = tz)`: invalid 'tz' value
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(fse(x1), c("2016-01-01 2017-01-01", "2017-01-01 2018-01-01")) at test_formatting_funcs.R:113:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─padr (local) fse(x1)
   5.   └─base::strftime(x, start_format, tz = attr(x, "tzone"))
   6.     ├─base::format(...)
   7.     ├─base::as.POSIXlt(x, tz = tz)
   8.     └─base::as.POSIXlt.Date(x, tz = tz)
   9.       └─base::as.POSIXlt(.Internal(Date2POSIXlt(x, tz)), tz = tz)
  ── Error ('test_formatting_funcs.R:120'): format_interval end _offset works ────
  Error in `as.POSIXlt(.Internal(Date2POSIXlt(x, tz)), tz = tz)`: invalid 'tz' value
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test_formatting_funcs.R:120:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─padr (local) fse(x1, end_offset = 1)
   5.   └─base::strftime(x, start_format, tz = attr(x, "tzone"))
   6.     ├─base::format(...)
   7.     ├─base::as.POSIXlt(x, tz = tz)
   8.     └─base::as.POSIXlt.Date(x, tz = tz)
   9.       └─base::as.POSIXlt(.Internal(Date2POSIXlt(x, tz)), tz = tz)
  ── Error ('test_formatting_funcs.R:128'): format_interval works for non symmetrics ──
  Error in `as.POSIXlt(.Internal(Date2POSIXlt(x, tz)), tz = tz)`: invalid 'tz' value
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test_formatting_funcs.R:128:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─padr (local) fse(x3)
   5.   └─base::strftime(x, start_format, tz = attr(x, "tzone"))
   6.     ├─base::format(...)
   7.     ├─base::as.POSIXlt(x, tz = tz)
   8.     └─base::as.POSIXlt.Date(x, tz = tz)
   9.       └─base::as.POSIXlt(.Internal(Date2POSIXlt(x, tz)), tz = tz)
  
  [ FAIL 4 | WARN 2 | SKIP 0 | PASS 608 ]
  Error: Test failures
  Execution halted