Re: [Rd] getGraphicsEvent in an example

From: Greg Snow <>
Date: Tue, 17 Feb 2009 10:01:46 -0700

Just wrap the example in either \dontrun{} or if(interactive()){


That way that example will be skipped when the automatic tests are done, but will still be available for a reader to run by copy/paste or the examples function (2nd case above).

This has worked for me, examples using these are playSudoku in the sudoku package and dynIdentify in TeachingDemos.

Hope this helps,

Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare

> -----Original Message-----
> From: [mailto:r-devel-bounces_at_r-
>] On Behalf Of Christophe Genolini
> Sent: Tuesday, February 17, 2009 5:07 AM
> To:
> Subject: [Rd] getGraphicsEvent in an example
> Hi the list,
> Is there a way to include a function using a getGraphicsEvent in the
> \examples section?
> Christophe
> ______________________________________________
> mailing list
______________________________________________ mailing list
Received on Tue 17 Feb 2009 - 16:05:21 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 18 Feb 2009 - 19:31:11 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive