Skip to content
Prev 45501 / 63424 Next

Non-vignette sweave file in package

On 04/04/2013 10:55 AM, ONKELINX, Thierry wrote:
1) You can put it anywhere you like in the inst directory, but "doc" 
might make sense (if it doesn't trigger warnings about a badly formed 
vignette, I haven't checked).  When installed, it moves up one level.  
So ".../inst/doc/mydoc.Rnw"
will be retrievable as system.file("doc/mydoc.Rnw", package="mypkg").

2) Use Sweave() and tools::texi2pdf().  You might want to write your own 
function that calls those, after saving the data in the appropriate place.

Duncan Murdoch