[Rd] getGraphicsEvent in an example

Christophe Genolini cgenolin at u-paris10.fr
Wed Feb 18 16:35:17 CET 2009

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.


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

More information about the R-devel mailing list