From ggrothendieck at gmail.com  Tue Feb 17 19:12:19 2009
From: ggrothendieck at gmail.com (Gabor Grothendieck)
Date: Tue, 17 Feb 2009 13:12:19 -0500
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: <971536df0902171012l1153cc2ld141266305bda1de@mail.gmail.com>

Also any demos in the demo directory will be skipped by
the automated checks.

On Tue, Feb 17, 2009 at 12:01 PM, Greg Snow <Greg.Snow at imail.org> wrote:
> 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
> greg.snow at imail.org
> 801.408.8111
>
>
>> -----Original Message-----
>> From: r-devel-bounces at r-project.org [mailto:r-devel-bounces at r-
>> project.org] On Behalf Of Christophe Genolini
>> Sent: Tuesday, February 17, 2009 5:07 AM
>> To: r-devel at r-project.org
>> 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
>>
>> ______________________________________________
>> R-devel at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-devel
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>



[Rd] getGraphicsEvent in an example
Gabor Grothendieck