tests/testthat/setup.R

# Suppress partial match warnings and info messages during tests
op <- options(
  warnPartialMatchDollar = FALSE,
  warnPartialMatchArgs = FALSE,
  warnPartialMatchAttr = FALSE,
  propensity.quiet = TRUE
)

# Restore options on exit
withr::defer(options(op), teardown_env())

Try the propensity package in your browser

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

propensity documentation built on March 3, 2026, 1:06 a.m.