Re: [Rd] if(--as-cran)?

2012-09-03 Thread Spencer Graves
On 9/3/2012 7:59 PM, Hadley Wickham wrote: | Hi, see thread "[Rd] Proposal: Mechanism for controlling the amount of | testing 'R CMD check' performs" on April 8, 2012: | | https://stat.ethz.ch/pipermail/r-devel/2012-April/063809.html Good proposal, somehow I missed that at the time. Something

Re: [Rd] if(--as-cran)?

2012-09-03 Thread Hadley Wickham
> | Hi, see thread "[Rd] Proposal: Mechanism for controlling the amount of > | testing 'R CMD check' performs" on April 8, 2012: > | > | https://stat.ethz.ch/pipermail/r-devel/2012-April/063809.html > > Good proposal, somehow I missed that at the time. Something like this ought > be to implement

Re: [Rd] Environment when NextMethod is used

2012-09-03 Thread Hadley Wickham
Any ideas? Is this a big or a deliberate feature? Hadley On Saturday, September 1, 2012, Winston Chang wrote: > I'm running into some hard-to-understand behavior with the evaluation > environment when NextMethod is used. I'm using square-bracket indexing > into objects, and the evaluation environ

Re: [Rd] if(--as-cran)?

2012-09-03 Thread Spencer Graves
Hi, Duncan: Duh... Thanks. I should have been able to figure that out for myself. Your help produced a solution much quicker. Thank again. Spencer On 9/3/2012 4:52 PM, Duncan Murdoch wrote: On 12-09-03 7:25 PM, Spencer Graves wrote: Hi, Duncan et al.: I modi

Re: [Rd] if(--as-cran)?

2012-09-03 Thread Duncan Murdoch
On 12-09-03 7:25 PM, Spencer Graves wrote: Hi, Duncan et al.: I modified my CRAN() function (see below) to look for "_R_CHECK_TIMINGS_" and "R_CHECK_TIMINGS", but got "NOT CRAN" with "R CMD check --as-cran" from both. Suggestions? Thanks, Spencer p.s. This is

Re: [Rd] if(--as-cran)?

2012-09-03 Thread Spencer Graves
Hi, Duncan et al.: I modified my CRAN() function (see below) to look for "_R_CHECK_TIMINGS_" and "R_CHECK_TIMINGS", but got "NOT CRAN" with "R CMD check --as-cran" from both. Suggestions? Thanks, Spencer p.s. This is fda available from R-Forge via "svn checkout svn

Re: [Rd] if(--as-cran)?

2012-09-03 Thread Duncan Murdoch
On 12-09-03 11:18 AM, Martin Maechler wrote: Dirk Eddelbuettel on Mon, 3 Sep 2012 09:34:06 -0500 writes: > On 3 September 2012 at 00:49, Henrik Bengtsson wrote: > | Hi, see thread "[Rd] Proposal: Mechanism for controlling the amount of > | testing 'R CMD check' performs" on

[Rd] [Patch] Minor glitch in 'Writing R Extensions'

2012-09-03 Thread Dirk Eddelbuettel
The (marked up in info mode) manual Writing R Extensions says in 6.1.3 -- Function: double fprec (double X, double DIGITS) Returns the value of X rounded to DIGITS decimal digits (after the decimal point). This is the function used by R's `round()'.

Re: [Rd] if(--as-cran)?

2012-09-03 Thread Martin Maechler
> Dirk Eddelbuettel > on Mon, 3 Sep 2012 09:34:06 -0500 writes: > On 3 September 2012 at 00:49, Henrik Bengtsson wrote: > | Hi, see thread "[Rd] Proposal: Mechanism for controlling the amount of > | testing 'R CMD check' performs" on April 8, 2012: > | > | https

Re: [Rd] if(--as-cran)?

2012-09-03 Thread Dirk Eddelbuettel
On 3 September 2012 at 00:49, Henrik Bengtsson wrote: | Hi, see thread "[Rd] Proposal: Mechanism for controlling the amount of | testing 'R CMD check' performs" on April 8, 2012: | | https://stat.ethz.ch/pipermail/r-devel/2012-April/063809.html Good proposal, somehow I missed that at the time.

Re: [Rd] if(--as-cran)?

2012-09-03 Thread Duncan Murdoch
On 12-09-03 1:43 AM, Spencer Graves wrote: Hello, All: The fda package has tests that run too long for CRAN's current rules. I'd like to wrap some examples in a construct like the following: if(!CRAN()){ ... } I tried the following: CRAN <- function(x='_R_CHECK_CRAN_INCOM

Re: [Rd] Typo (?) in 'aggregate.formula'

2012-09-03 Thread Suharto Anggono Suharto Anggono
No, I didn't actually get bitten by this. I used 'aggregate.formula' only recently. I saw this when trying to know how 'aggregate.formula' worked, especially in accepting dot (.) in left-hand side of formula. Thanks for the fix. --- On Mon, 3/9/12, peter dalgaard wrote: > From: peter dalgaard

Re: [Rd] Typo (?) in 'aggregate.formula'

2012-09-03 Thread peter dalgaard
This (and more) was fixed in r-devel back in May. Did you actually get bitten by this? (The code has been there for years, so it hasn't been slated for R-patched.) -pd On Sep 3, 2012, at 11:06 , Suharto Anggono Suharto Anggono wrote: > In the code for 'aggregate.formula', there is > if (as.ch

[Rd] Typo (?) in 'aggregate.formula'

2012-09-03 Thread Suharto Anggono Suharto Anggono
In the code for 'aggregate.formula', there is if (as.character(formula[[2L]] == ".")) I believe that it is meant to be if (as.character(formula[[2L]]) == ".") However, if (as.character(formula[[2L]] == ".")) gives the expected result. Tracing: - formula[[2L]] == "." is equivalent to as.character(f

Re: [Rd] if(--as-cran)?

2012-09-03 Thread Henrik Bengtsson
Hi, see thread "[Rd] Proposal: Mechanism for controlling the amount of testing 'R CMD check' performs" on April 8, 2012: https://stat.ethz.ch/pipermail/r-devel/2012-April/063809.html /Henrik On Sun, Sep 2, 2012 at 10:43 PM, Spencer Graves wrote: > Hello, All: > > > The fda package has