Skip to content
Prev 6541 / 12125 Next

[R-pkg-devel] Undeclared packages ... in Rd xrefs

On 01/02/2021 5:03 p.m., Ulrike Gr?mping wrote:
There's a line in the Writing R Extensions manual section 2.5 
Cross-refernces for R-devel that says:

"Packages referred to by these ?other forms? should be declared in the 
DESCRIPTION file, in the ?Depends?, ?Imports?, ?Suggests? or ?Enhances? 
fields."

The other forms are the forms of links to other packages.  So presumably 
you don't mention those packages in your DESCRIPTION file.  Generally 
that means they should be listed in Suggests, which doesn't force them 
to be installed, but they will be installed during tests.  You might 
also argue they should be in Enhances, though that seems a worse fit.

Duncan Murdoch