Re: [Rd] vignettes in a bundle

2009-04-28 Thread Robin Hankin
Romain Francois wrote: Would this work better: <>= bib <- system.file( "doc", "bayesian.bib", package = "emulator" ) cat( "\\bibliography{",bib,"}\n",sep='') @ Romain Yes, this gives cleaner TeX output (I keep on forgetting about Sweave's 'result' code chunk option). But I still don't unders

Re: [Rd] vignettes in a bundle

2009-04-28 Thread Romain Francois
Would this work better: <>= bib <- system.file( "doc", "bayesian.bib", package = "emulator" ) cat( "\\bibliography{",bib,"}\n",sep='') @ Romain Robin Hankin wrote: Hello Romain this is brilliant; it never occurred to me to use cat() in this way. It works but I don't know why. With: <>= bib

Re: [Rd] vignettes in a bundle

2009-04-28 Thread Robin Hankin
Hello Romain this is brilliant; it never occurred to me to use cat() in this way. It works but I don't know why. With: <>= bib <- system.file( "doc", "bayesian.bib", package = "emulator" ) cat( "\\bibliography{",bib,"}\n",sep='') @ in the Rnw file, the TeX file looks like this: \begin{Schunk

Re: [Rd] vignettes in a bundle

2009-04-28 Thread Romain Francois
Hi Robin, Something like: <>= bib <- system.file( "bib", "mybib.bib", package = "yada" ) cat( "\\bibliography{",bib,"}\n") @ It would also be nice to be able to use bibliography in Rd files ... Romain Robin Hankin wrote: Hi I have a bundle comprising three packages. Each package has a vign

[Rd] vignettes in a bundle

2009-04-28 Thread Robin Hankin
Hi I have a bundle comprising three packages. Each package has a vignette. Currently each vignette has a separate .bib file. How do I arrange the bundle so that each vignette accesses a single, common, .bib file? thanks Robin -- Robin K. S. Hankin Uncertainty Analyst University of Cambridg