Running ‘spelling.R’
  Comparing ‘spelling.Rout’ to ‘spelling.Rout.save’ ... OK
  Running ‘testthat.R’ [9s/26s]
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")
  
  
  
  
  
  
  
  
  Processing:
  dfm.dta 
  
  
  
  
  
  
  
  [ FAIL 4 | WARN 0 | SKIP 0 | PASS 77 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-convert.R:85:3'): convert() works from R to Stata and return ──
  dfm$Area (`actual`) not equal to dfmstata$Area (`expected`).
  
  `class(actual)`:   "declared" "integer"
  `class(expected)`: "declared" "numeric"
  
  `attr(actual, 'date')` is absent
  `attr(expected, 'date')` is a logical vector (FALSE)
  ── Failure ('test-convert.R:86:3'): convert() works from R to Stata and return ──
  dfm$Gender (`actual`) not equal to dfmstata$Gender (`expected`).
  
  `class(actual)`:   "declared" "integer"
  `class(expected)`: "declared" "numeric"
  
  `attr(actual, 'date')` is absent
  `attr(expected, 'date')` is a logical vector (FALSE)
  ── Failure ('test-convert.R:87:3'): convert() works from R to Stata and return ──
  dfm$Opinion (`actual`) not equal to dfmstata$Opinion (`expected`).
  
  `class(actual)`:   "declared" "integer"
  `class(expected)`: "declared" "numeric"
  
  `attr(actual, 'date')` is absent
  `attr(expected, 'date')` is a logical vector (FALSE)
  ── Failure ('test-convert.R:119:3'): convert() works from R to DDI and return ──
  `dfm` (`actual`) not equal to `dfmddi` (`expected`).
  
  `attr(actual$Area, 'date')` is absent
  `attr(expected$Area, 'date')` is a logical vector (FALSE)
  
  `attr(actual$Gender, 'date')` is absent
  `attr(expected$Gender, 'date')` is a logical vector (FALSE)
  
  `attr(actual$Opinion, 'date')` is absent
  `attr(expected$Opinion, 'date')` is a logical vector (FALSE)
  
  `attr(actual$narange, 'date')` is absent
  `attr(expected$narange, 'date')` is a logical vector (FALSE)
  
  `attr(actual$minusinf, 'date')` is absent
  `attr(expected$minusinf, 'date')` is a logical vector (FALSE)
  
  `attr(actual$plusinf, 'date')` is absent
  `attr(expected$plusinf, 'date')` is a logical vector (FALSE)
  
  `attr(actual$charvar, 'date')` is absent
  `attr(expected$charvar, 'date')` is a logical vector (FALSE)
  
  [ FAIL 4 | WARN 0 | SKIP 0 | PASS 77 ]
  Error: Test failures
  Execution halted