[Rd] How to link to vignette from .Rd file

Gavin Simpson gavin.simpson at ucl.ac.uk
Tue Nov 7 19:05:16 CET 2006


On Tue, 2006-11-07 at 12:41 -0500, Dominick Samperi wrote:
> Duncan Murdoch wrote:
> > On 11/7/2006 8:51 AM, Agner Fog wrote:
> >   
> >> I am building a package for various noncentral hypergeometric distributions.
> >>
> >> I want to include some heavy mathematical formulas. It appears that the 
> >> build and INSTALL commands produce only .chm files and not .pdf files 
> >> from my .Rd files under Windows. This means that it cannot show 
> >> complicated mathematical formulas.
> >>
> >> The solution might be to include a .pdf file as a vignette. I tried 
> >> that, but I can't find any way to link to the .pdf file or access it 
> >> from any of the help facilities. The .pdf file is useless if the user 
> >> can't find it.
> >>     
> >
> > Yes, that's a major problem in the current R help system.  You can give 
> > the user code that would work to show the vignette, but there's no way 
> > to create a live link to it.
> >   
<snip />
> To create the PDF file from the Rd file use R CMD Rd2dvi, and dvipdf.

You can do this directly without dvipdf: 

R CMD Rd2dvi --pdf name_of_Rd_file.Rd

G

> 
> ds
-- 
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
 Gavin Simpson                 [t] +44 (0)20 7679 0522
 ECRC & ENSIS, UCL Geography,  [f] +44 (0)20 7679 0565
 Pearson Building,             [e] gavin.simpsonATNOSPAMucl.ac.uk
 Gower Street, London          [w] http://www.ucl.ac.uk/~ucfagls/
 UK. WC1E 6BT.                 [w] http://www.freshwaters.org.uk
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%



More information about the R-devel mailing list