[Rd] vignette optional sections.

From: Paul Gilbert <pgilbert_at_bank-banque-canada.ca>
Date: Wed, 31 Oct 2007 11:47:07 -0400

I am writing a vignette that can run certain things on some systems but needs to skip them on other systems. (Some sections need databases that will not always be available.) Wrapping things in an if(){} partly works. It gives fairly ugly examples and all printing gets delayed until the end of the if. However, if the block produces a graphic, and I have {fig=TRUE} so in the case where the database is available the graphic is included in the vignette pdf, then the pdf generation fails in the case where the graphic is not produced.

Does anyone have suggestions for a nice solution to this?

Paul Gilbert

La version franšaise suit le texte anglais.

This email may contain privileged and/or confidential in...{{dropped:26}}

R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Wed 31 Oct 2007 - 16:05:41 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 Wed 31 Oct 2007 - 17:30:13 GMT.

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