Re: [R] Link to a pdf document

From: Duncan Murdoch <murdoch.duncan_at_gmail.com>
Date: Tue, 29 Jun 2010 06:43:34 -0400

cgenolin wrote:
> Hi the list,
>
> I would like to put a link in a .Rd file to a PDF document (not a vignette,
> just a
> regular PDF). I put my PDF in the folder inst/doc/toto.pdf. In the bible
> "2.5
> Cross-references", I read that \link can point to PDF file, but I did not
> manage to do
> it. How shall I do that ?

I think you misread the documentation. What it says is that links will be produced in PDF documents (i.e. the PDF form of the man pages), but those are internal links.

You can use the \url tag (or as of the upcoming 2.12.0 the \href tag) to link to a PDF file. If your package is named "foo", \url{/library/foo/doc/toto.pdf} should work. (The "/library/" part at the start does not need to match your own library location; the help server looks for that particular string.)

Duncan Murdoch



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Tue 29 Jun 2010 - 10:46:36 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 29 Jun 2010 - 11:10:42 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive