Am 31.07.25 um 11:09 schrieb Jon Olav Skoien:
Is there a different way of conditionally
using the suggested package? Or do I have to use the IGNORE_RDIFF
method?

To use *reference output* for optional tests, you could move these tests to a dedicated script with a corresponding .Rout.save file, put the files in a tests/ subdirectory, and use an .Rin file to include them only if the suggested package is available. I implemented a similar approach in the 'nlme' package to run extra tests with reference output conditionally on an environment variable, see <https://svn.r-project.org/R-packages/trunk/nlme/tests/extras.Rin> for inspiration.

--
Sebastian Meyer

______________________________________________
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel

Reply via email to