From cgenolin at u-paris10.fr  Wed Feb 18 16:35:17 2009
From: cgenolin at u-paris10.fr (Christophe Genolini)
Date: Wed, 18 Feb 2009 16:35:17 +0100
Subject: [Rd] getGraphicsEvent in an example
In-Reply-To: <B37C0A15B8FB3C468B5BC7EBC7DA14CC61CA2A09C4@LP-EXMBVS10.CO.IHC.COM>
References: <499AA869.1040400@u-paris10.fr>
	<B37C0A15B8FB3C468B5BC7EBC7DA14CC61CA2A09C4@LP-EXMBVS10.CO.IHC.COM>
Message-ID: <499C2AB5.50300@u-paris10.fr>

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



[Rd] getGraphicsEvent in an example
Christophe Genolini