Running 'testthat.R' [23s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(soilDB)
  > 
  > test_check("soilDB")
  [ FAIL 7 | WARN 0 | SKIP 77 | PASS 201 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (70)
  • local NASIS database not available (7)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-fetchHenry.R:122:3): summarizeSoilTemperature() works as expected ──
  Error in `.POSIXct(x, tz, ...)`: unused argument (format = "%Y-%m-%d %H:%M:%S")
  Backtrace:
      ▆
   1. ├─soilDB:::.formatDates(x, gran = "day", pad.missing.days = TRUE) at test-fetchHenry.R:122:2
   2. │ ├─...[]
   3. │ └─data.table:::`[.data.table`(...)
   4. └─soilDB:::.fill_missing_days(.SD)
   5.   ├─base::as.POSIXct(x$date_time, format = "%Y-%m-%d %H:%M:%S")
   6.   └─base::as.POSIXct.default(x$date_time, format = "%Y-%m-%d %H:%M:%S")
  ── Error (test-fetchHenry.R:165:3): .fill_missing_days() works as expected ─────
  Error in `.POSIXct(x, tz, ...)`: unused argument (format = "%Y-%m-%d %H:%M:%S")
  Backtrace:
      ▆
   1. └─soilDB:::.fill_missing_days(x) at test-fetchHenry.R:165:2
   2.   ├─base::as.POSIXct(x$date_time, format = "%Y-%m-%d %H:%M:%S")
   3.   └─base::as.POSIXct.default(x$date_time, format = "%Y-%m-%d %H:%M:%S")
  ── Failure (test-waterDayYear.R:15:3): works as expected ───────────────────────
  res.lr$wd not equal to 153L.
  1/1 mismatches
  [1] 152 - 153 == -1
  ── Failure (test-waterDayYear.R:16:3): works as expected ───────────────────────
  res$wd not equal to 152L.
  1/1 mismatches
  [1] 151 - 152 == -1
  ── Failure (test-waterDayYear.R:23:3): works as expected ───────────────────────
  res$wd not equal to 1.
  1/1 mismatches
  [1] 0 - 1 == -1
  ── Failure (test-waterDayYear.R:30:3): works as expected ───────────────────────
  res$wd not equal to 365.
  1/1 mismatches
  [1] 364 - 365 == -1
  ── Failure (test-waterDayYear.R:38:3): works as expected ───────────────────────
  res$wd not equal to c(50, 140).
  2/2 mismatches (average diff: 1)
  [1]  49 -  50 == -1
  [2] 139 - 140 == -1
  
  [ FAIL 7 | WARN 0 | SKIP 77 | PASS 201 ]
  Error: Test failures
  Execution halted