Re: [Rd] print(...,digits=2) behavior

2011-02-13 Thread Petr Savicky
On Mon, Feb 07, 2011 at 09:56:18AM +0100, Martin Maechler wrote: [...] Namely, one important purpose of the test is to ensure that e.g. print(3.597, digits = 3) is printed as 3.6 and not 3.60 Now I have had -- since 1997 at least -- an R version of scientific() for more easy

[Rd] CRAN package sizes

2011-02-13 Thread Prof Brian Ripley
Robin Hankin's post reminded me to post about the following recent addition to 'Writing R Extensions', in the section on 'Submitting a package to CRAN' Ensure that the package sources are not unnecessarily large. ... As a general rule, doc directories should not exceed 5Mb, and where

Re: [Rd] R 2.13.0 on Windows: R CMD check and 'du' not found

2011-02-13 Thread Duncan Murdoch
On 11-02-12 4:57 PM, Henrik Bengtsson wrote: FYI, I'm sure the following is a temporary issue, but in case it slips through, I want to raise it here. On Windows 7 64-bit, running Rcmd check on R devel gives: I think you need version r54335 or newer to avoid this error. * using R version

Re: [Rd] using rasterImage within image

2011-02-13 Thread Paul Murrell
Hi On 12/02/2011 7:22 p.m., Michael Sumner wrote: Hello, that appears to have fixed it. Thank you very much. I can now repeat the reported workflow and the image appears on the fifth (and subsequent) calls. Great. Thanks for checking. Paul Cheers, Mike. sessionInfo() R version 2.13.0

Re: [Rd] CRAN package sizes

2011-02-13 Thread Yihui Xie
Regarding the reasons that make the doc directory large, I wonder if we can make some changes in R: 1. Use a null graphics device as the default device rather than pdf() when running Sweave -- this can avoid the useless Rplots.pdf: options(device = function(...) { .Call(R_GD_nullDevice,

Re: [Rd] Suggestion: Adding quick rowMin and rowMax functions to base package

2011-02-13 Thread TakeoKatsuki
Hi Henrik, It would be nice if functions of the matrixStats package can handle array data. For example, rowSums() of the base package sums along the third axis of an array by rowSums(x, dim=2). Thanks. Takeo Henrik Bengtsson wrote: See rowMins(), rowMaxs() and rowRanges() in matrixStats

[Rd] Wish: Iterate over any data type/object 'xs' in for (x in xs) { ... }

2011-02-13 Thread Henrik Bengtsson
Hi, this is about iterating over any data type/object 'xs' in the for-loop constructor: for (x in xs) { ... } From help(for), on can read that 'xs' has to be An expression evaluating to a vector (including a list and an expression) or to a pairlist or NULL. A factor value will be coerced to a