Skip to content
Prev 2437 / 12125 Next

[R-pkg-devel] How to (conditionally) use an archived package (without Suggests)?

On 24/02/2018 7:26 PM, Marius Hofert wrote:
Don't throw an error, work around it.  If you have no alternative code, 
then don't test the "bar" code unless "bar" is installed.

The basic idea is that your package should pass tests without errors 
even if "bar" is not available.

I think Dirk is wrong saying that "bar" has to be available; CRAN isn't 
going to go looking for it.  But they do want your package to pass all 
tests even if none of the Suggests packages is available.

Duncan Murdoch