[R] linking vignettes in a man page

Duncan Murdoch murdoch.duncan at gmail.com
Wed Jun 29 23:27:25 CEST 2016


On 29/06/2016 4:49 PM, Christophe Dutang wrote:
> Dear list,
>
> How can I link a vignette of a package in a man page (Rd files)?
>
> I try \link[=pkgname/doc/filename]{a name} without success.
>
> The link gives the following error message: Only help files, NEWS, DESCRIPTION and files under doc/ and demo/ in a package can be viewed


You can give \url{} style links, for example the grid package has

\url{../doc/grid.pdf}

in the package?grid help topic.  Similarly, ../../<pkg>/help/<alias> 
will link from a vignette to help topic ?alias.

Duncan Murdoch



More information about the R-help mailing list