[R-pkg-devel] Problem passing noSuggests test

Sebastian Meyer @eb@meyer @end|ng |rom |@u@de
Fri Aug 1 16:20:04 CEST 2025


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



More information about the R-package-devel mailing list