tests/test-package-load.R

# Test that package loads without messages for
# default patient IDs or cohort indices.
tmp <- tempfile()
sink(file(tmp, open = "wt"), type = "message")
library(crmPack)
sink(type = "message")
msg <- readLines(tmp)
checkmate::expect_disjunct("Used default patient IDs!", msg)
checkmate::expect_disjunct("Used best guess cohort indices!", msg)
Roche/crmPack documentation built on June 30, 2024, 1:31 a.m.