One of my packages failed the noSuggests test, and needs to be updated. Fair enough, a suggested package was used unconditionally both in an example and in a test. From what I understood, a solution is to wrap this part of the code inside if (require("suggestedPackage")) {useSuggestedPackage} However, it still fails the noSuggests test, this time because the output does not match the test.Rout.save-file. This is also clear, as some of the code is not executed, and some output is missing.
How do I get around this? I could use ## IGNORE_RDIFF_BEGIN and ## IGNORE_RDIFF_END before and after the if (require()) clause, but then this part would not be tested when the suggested package is available either. I don't like this solution, as it means the interaction between the two packages will not be checked. Am I missing something? Is there a different way of conditionally using the suggested package? Or do I have to use the IGNORE_RDIFF method? Thanks, Jon ______________________________________________ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel