tests/testthat/test-helper-msg.R

test_that("msg helper", {
    expect_message(.msg(TRUE, "This is a message."), "This is a message.")
    expect_silent(.msg(FALSE, "This message should not be printed."))
})

Try the nuggets package in your browser

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

nuggets documentation built on March 11, 2026, 5:06 p.m.