Re: [Rd] par(ask=TRUE) in R CMD check?

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Sat, 12 Mar 2011 16:55:55 +0000 (GMT)

On Sat, 12 Mar 2011, Spencer Graves wrote:

> Hello:
>
> What happens in the auto-checks on R-Forge and CRAN with code using
> par(ask=TRUE)?
>
> Is this routine, or can it create problems?
>
> The fda package uses ask=TRUE to provide the user with a way to examine
> a group of plots. In the past, I've marked those tests in \examples with
> \dontrun. However, I wonder if that is necessary. I tried it on Windows
> using R 2.12.0 and R Tools from that version, and R Tools seemed to supply
> all the mouse clicks required. However, before I "SVN Commit" to R-Forge, I
> felt a need to ask.

No mouse clicks are needed! par(ask=TRUE) is ignored on a pdf device (which is the non-interactive default device). In any case, the help says

      Ħask˘ logical. If ĦTRUE˘ (and the R session is interactive) the ...

           This not really a graphics parameter, and its use is
           deprecated in favour of ĦdevAskNewPage˘.

See also the 'ask' argument in ?example. What you say you want to do is the default behaviour of example(), and has been for some years.

-- 
Brian D. Ripley,                  ripley_at_stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595


______________________________________________ R-devel_at_r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Received on Sat 12 Mar 2011 - 16:59:19 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 Mon 14 Mar 2011 - 11:40:31 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