tests/testthat/setup.R

# pp_check(resp_var = "all") builds a grob grid, and grob construction needs a
# device for font metrics. Without one open, R starts its default device, which
# is pdf() in a non-interactive session and leaves an Rplots.pdf behind.
grDevices::pdf(NULL)
withr::defer(grDevices::dev.off(), teardown_env())

Try the bmm package in your browser

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

bmm documentation built on Oct. 16, 2026, 9:08 a.m.