Running 'spelling.R' [0s]
  Running 'testthat.R' [5s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/tests.html
  > # * https://testthat.r-lib.org/reference/test_package.html#special-files
  > 
  > library(testthat)
  > library(DDIwR)
  Also attaching packages: admisc, declared, haven
  > 
  > test_check("DDIwR")
  
  
  
  
  
  
  [ FAIL 5 | WARN 0 | SKIP 0 | PASS 27 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-collectMetadata.R:2:1'): (code run outside of `test_that()`) ───
  Error in `as.Date.numeric(value)`: 'origin' must be supplied
  Backtrace:
      ▆
   1. └─DDIwR:::makedfm() at test-collectMetadata.R:2:1
   2.   ├─base::`[<-`(`*tmp*`, c(1, sample(seq(1, n), 20)), value = `<dbl>`)
   3.   └─base::`[<-.Date`(`*tmp*`, c(1, sample(seq(1, n), 20)), value = `<dbl>`)
   4.     ├─base::as.Date(value)
   5.     └─base::as.Date.numeric(value)
  ── Error ('test-convert.R:5:1'): (code run outside of `test_that()`) ───────────
  Error in `as.Date.numeric(value)`: 'origin' must be supplied
  Backtrace:
      ▆
   1. └─DDIwR:::makedfm() at test-convert.R:5:1
   2.   ├─base::`[<-`(`*tmp*`, c(1, sample(seq(1, n), 20)), value = `<dbl>`)
   3.   └─base::`[<-.Date`(`*tmp*`, c(1, sample(seq(1, n), 20)), value = `<dbl>`)
   4.     ├─base::as.Date(value)
   5.     └─base::as.Date.numeric(value)
  ── Error ('test-getFormat.R:2:1'): (code run outside of `test_that()`) ─────────
  Error in `as.Date.numeric(value)`: 'origin' must be supplied
  Backtrace:
      ▆
   1. └─DDIwR:::makedfm() at test-getFormat.R:2:1
   2.   ├─base::`[<-`(`*tmp*`, c(1, sample(seq(1, n), 20)), value = `<dbl>`)
   3.   └─base::`[<-.Date`(`*tmp*`, c(1, sample(seq(1, n), 20)), value = `<dbl>`)
   4.     ├─base::as.Date(value)
   5.     └─base::as.Date.numeric(value)
  ── Error ('test-recodeCharcat.R:1:1'): (code run outside of `test_that()`) ─────
  Error in `as.Date.numeric(value)`: 'origin' must be supplied
  Backtrace:
      ▆
   1. └─DDIwR:::makedfm() at test-recodeCharcat.R:1:1
   2.   ├─base::`[<-`(`*tmp*`, c(1, sample(seq(1, n), 20)), value = `<dbl>`)
   3.   └─base::`[<-.Date`(`*tmp*`, c(1, sample(seq(1, n), 20)), value = `<dbl>`)
   4.     ├─base::as.Date(value)
   5.     └─base::as.Date.numeric(value)
  ── Error ('test-recodeMissings.R:38:1'): (code run outside of `test_that()`) ───
  Error in `as.Date.numeric(value)`: 'origin' must be supplied
  Backtrace:
      ▆
   1. └─DDIwR:::makedfm() at test-recodeMissings.R:38:1
   2.   ├─base::`[<-`(`*tmp*`, c(1, sample(seq(1, n), 20)), value = `<dbl>`)
   3.   └─base::`[<-.Date`(`*tmp*`, c(1, sample(seq(1, n), 20)), value = `<dbl>`)
   4.     ├─base::as.Date(value)
   5.     └─base::as.Date.numeric(value)
  
  [ FAIL 5 | WARN 0 | SKIP 0 | PASS 27 ]
  Error: Test failures
  Execution halted