Skip to content
Prev 283 / 12125 Next

[R-pkg-devel] Help needed to setting custom packages for R 3.1.2

Hi,

Thanks to your suggestions and those of other responders, I was able to 
get rid of the warning messages returned during R CMD check.

However I am still confused by the .Rd file-related warnings I get when 
we install the packages. For instance:

Rd warning: /tmp/some/path/man/pkgC_function_009.Rd:21: missing file 
link "panel.abline"

I typed: \code{\link[lattice]{panel.abline}} on line 21 for the Rd file.

My NAMESPACE file includes:

  importFrom(lattice,panel.abline)

Surprisingly, other cross-references to lattice functions also imported 
using importFrom do not generate warning upon installation.

When I consider the full list of function links that generate warnings, 
it looks like all of them are associated with alias rather than name 
tags in the target .Rd file (for instance, panel.abline is documented in 
a .Rd file with \name{panel.functions}).

The CRAN manual is not clear on this point. Is there a specific syntax 
to use to document this types of links?

Thank you again for your time

Sebastien
On 7/15/2015 9:24 AM, Duncan Murdoch wrote: