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)

Try the crmPack package in your browser

Any scripts or data that you put into this service are public.

crmPack documentation built on Nov. 29, 2025, 5:07 p.m.