From hb at stat.berkeley.edu  Tue Sep 26 07:26:39 2006
From: hb at stat.berkeley.edu (Henrik Bengtsson)
Date: Mon, 25 Sep 2006 22:26:39 -0700
Subject: [Rd] R CMD check and x11?
In-Reply-To: <45188EB6.7020905@DecisionSynergy.com>
References: <45188EB6.7020905@DecisionSynergy.com>
Message-ID: <59d7961d0609252226u3071d9d3r9fe88432ab20956f@mail.gmail.com>

You can close the x11() device using dev.off() in your example. You
may also want to look at interactive() so you can test in your example
is the code is run interactively or not; the latter is the case for R
CMD check.

/H

On 9/25/06, Dominick Samperi <dsamperi at decisionsynergy.com> wrote:
> One of my demos runs x11() so that I can resize the
> window and avoid the "too large for margins" message
> from plot. This seems to have a problematic side
> effect.
>
> When I run R CMD check on the package that demo
> is displayed, because it appears as an example in
> one of the man pages, and after this happens EVERY
> demo that plots anything is displayed (probably because
> they are in man pages).
>
> Normally R CMD check does not cause anything to
> be displayed, and this may cause problems if I submit
> the package to CRAN.
>
> Any pointers would be appreciated.
>
> Thanks,
>
> ds
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>
>




[Rd] R CMD check and x11?
Henrik Bengtsson