Re: [Rd] getGraphicsEvent in an example

From: Christophe Genolini <cgenolin_at_u-paris10.fr>
Date: Wed, 18 Feb 2009 16:35:17 +0100

Greg Snow a écrit :
> Just wrap the example in either \dontrun{} or
> if(interactive()){
>
> }
>
Thanks. Your solution gives me an other idea : try(myFunction) works as well.

Christophe

> 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,
>
>



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Wed 18 Feb 2009 - 14:39:17 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 - 21:30:28 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.

list of date sections of archive