tests/testthat/test_utility_functions.R

expect_silent(assert_(TRUE))
expect_silent(assert_(TRUE, TRUE))
expect_error(assert_(FALSE), "Assertion failed.")
expect_error(assert_(TRUE, FALSE, msg = "custom message"), "custom message")

Try the kdensity package in your browser

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

kdensity documentation built on Oct. 28, 2026, 5:06 p.m.