tableone
tableone copied to clipboard
Version dependency on labelled in tests
This line induces behavior in labelled
that's not present in v1.0.0:
https://github.com/kaz-yos/tableone/blob/b02ef39d9ae895103447baaa25b8536d2574984c/tests/testthat/test-CreateTableOne.R#L284
The issue didn't cause an error in the current CRAN version of labelled
, 2.9.0. I didn't check when exactly the labelled
behavior changed.
Two fixes:
- add
skip_if_not_installed("labelled", "2.9.0")
to that test - add a version dependency on
labelled
, e.g. very conservativelylabelled (>= 2.9.0)