[Rd] --interactive and -f/-e

2015-04-28 Thread Mick Jordan
I was surprised by this: R --interactive -e 'interactive()' bash-3.2$ R -q -e 'interactive()' --interactive > interactive() [1] FALSE > as the command options document says that --interactive should force interactive=TRUE: " When *R* is run in a terminal (via |Rterm.exe| on Windows), it assu

[Rd] R CMD check and missing imports from base packages

2015-04-28 Thread Gábor Csárdi
When a symbol in a package is resolved, R looks into the package's environment, and then into the package's imports environment. Then, if the symbol is still not resolved, it looks into the base package. So far so good. If still not found, it follows the 'search()' path, starting with the global e

[Rd] Add first() and last() to utils?

2015-04-28 Thread Gregory Warnes
Hi all, I've been using first() and last() for some time instead of x[1] and x[length(x)] for vectors, and I gradually added methods for lists, matrices, and data.frames. In preparing the next release of the 'gdata' package (2.16.1) I settled on these definitions, which harness the existing metho

Re: [Rd] install.packages no longer respects quiet = TRUE ?

2015-04-28 Thread Prof Brian Ripley
On 28 April 2015 at 11:21, Hadley Wickham wrote: | > install.packages("plyr", quiet = T) | | trying URL 'http://cran.rstudio.com/bin/macosx/mavericks/contrib/3.2/plyr_1.8.2.tgz' | Content type 'application/x-gzip' length 855795 bytes (835 KB) | == |

Re: [Rd] install.packages no longer respects quiet = TRUE ?

2015-04-28 Thread Dirk Eddelbuettel
On 28 April 2015 at 11:21, Hadley Wickham wrote: | > install.packages("plyr", quiet = T) | | trying URL 'http://cran.rstudio.com/bin/macosx/mavericks/contrib/3.2/plyr_1.8.2.tgz' | Content type 'application/x-gzip' length 855795 bytes (835 KB) | ==

Re: [Rd] Inconsistency when naming a vector

2015-04-28 Thread Hadley Wickham
On Mon, Apr 27, 2015 at 8:33 AM, peter dalgaard wrote: > >> On 27 Apr 2015, at 13:48 , Hadley Wickham wrote: >> >> Sometimes the absence of a name is maked by an NA: >> >> x <- 1:2 >> names(x)[[1]] <- "a" >> names(x) >> # [1] "a" NA >> >> Whereas other times its >> >> y <- c(a = 1, 2) >> names(y)

[Rd] install.packages no longer respects quiet = TRUE ?

2015-04-28 Thread Hadley Wickham
> install.packages("plyr", quiet = T) trying URL 'http://cran.rstudio.com/bin/macosx/mavericks/contrib/3.2/plyr_1.8.2.tgz' Content type 'application/x-gzip' length 855795 bytes (835 KB) == downloaded 835 KB The downloaded binary packages are in /t