tableone icon indicating copy to clipboard operation
tableone copied to clipboard

Version dependency on labelled in tests

Open MichaelChirico opened this issue 2 years ago • 0 comments

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:

  1. add skip_if_not_installed("labelled", "2.9.0") to that test
  2. add a version dependency on labelled, e.g. very conservatively labelled (>= 2.9.0)

MichaelChirico avatar Mar 03 '22 22:03 MichaelChirico