tests/testthat/setup.R

# Several tests call plot() on fitted models. Without an active graphics
# device, R opens a default pdf() device and leaves an Rplots.pdf file behind
# in the working directory after every test run. pdf(NULL) opens a real but
# fileless pdf device (see ?pdf, "file" argument), so plotting still works but
# nothing is written to disk.
grDevices::pdf(NULL)

Try the spmodel package in your browser

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

spmodel documentation built on Sept. 11, 2026, 1:07 a.m.