Message-ID: <9778ff63-6405-4c93-8366-52a999fd61ee@fau.de>
Date: 2025-08-01T14:20:04Z
From: Sebastian Meyer
Subject: [R-pkg-devel] Problem passing noSuggests test
In-Reply-To: <CAOh2hrH+mFWwjWWaMzjCkobfUFpLHhm0Lb4RNEJcBto=08WLjA@mail.gmail.com>
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