Running ‘testthat.R’ [1s/1s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(utc)
  > 
  > test_check("utc")
  [ FAIL 3 | WARN 0 | SKIP 0 | PASS 0 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test_utc_difference.R:5:5): Difference_between_UTC_and_local_is_correct ──
  Error in `.POSIXct(x, tz, ...)`: unused argument (format = "%Y-%m-%d %H:%M:%S")
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(...) at test_utc_difference.R:5:4
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─base::format(-as.numeric(hoursUTC()) %h+% localtime, format = "%Y-%m-%d %H:%M:%S")
    5. ├─-as.numeric(hoursUTC()) %h+% localtime
    6. └─utc::hoursUTC()
    7.   ├─base::difftime(...)
    8.   │ └─base::as.POSIXct(time2)
    9.   ├─base::format(toUTC(localtime), timeformat)
   10.   └─utc::toUTC(localtime)
   11.     ├─base::as.POSIXct(localtime, format = timeformat)
   12.     └─base::as.POSIXct.default(localtime, format = timeformat)
  ── Error (test_utc_difference.R:15:3): hoursUTC_at_UTC ─────────────────────────
  Error in `.POSIXct(x, tz, ...)`: unused argument (format = "%Y-%m-%d %H:%M:%S")
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(as.numeric(hoursUTC(localtimeUTC)), 0) at test_utc_difference.R:15:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─utc::hoursUTC(localtimeUTC)
    5.   ├─base::difftime(...)
    6.   │ └─base::as.POSIXct(time2)
    7.   ├─base::format(toUTC(localtime), timeformat)
    8.   └─utc::toUTC(localtime)
    9.     ├─base::as.POSIXct(localtime, format = timeformat)
   10.     └─base::as.POSIXct.default(localtime, format = timeformat)
  ── Error (test_utc_difference.R:23:3): fromUTC_different_timeformat ────────────
  Error in `.POSIXct(x, tz, ...)`: unused argument (format = "%Y-%m-%d %H:%M:%S")
  Backtrace:
      ▆
   1. └─utc::fromUTC(...) at test_utc_difference.R:23:2
   2.   ├─base::as.POSIXct(utctime, format = timeformat)
   3.   └─base::as.POSIXct.default(utctime, format = timeformat)
  
  [ FAIL 3 | WARN 0 | SKIP 0 | PASS 0 ]
  Error: Test failures
  Execution halted