Skip to content
Prev 373521 / 398500 Next

Include pre-existing PDF files as vignettes in an R package?

On 19/02/2018 5:47 AM, Michael Hannon wrote:
If they aren't LaTeX then they won't be able to masquerade as Sweave 
files, so things are more complicated.

I think there are two possibilities.  The better but harder one is to 
write your own "vignette engine".  Section 1.4.2 of the manual describes 
the process, and ?tools::vignetteEngine describes what is needed in your 
engine.

The other possibility is to manually edit an inst/doc/index.html file to 
include links to your documents.  They won't be treated as vignettes, 
but at least users will be able to find them.  The other disadvantage of 
this approach is that you'll need to edit it for all vignettes, not just 
the strange ones.

Duncan Murdoch