[Rd] reg.finalizer and connection gc -- which runs when (and why)?

2011-07-21 Thread Martin Morgan
With this set-up options(warn = 1) tf <- tempfile() finalizer <- function(obj) { message("finalizer") close(obj$f) } this code works ev <- new.env() ev$f <- file(tf, "w") reg.finalizer(ev, finalizer) rm(ev) gc() whereas this (reversing the order of file() and reg.finalizer()) ev <- ne

[Rd] --max-vsize

2011-07-21 Thread Christophe Rhodes
Hi, In both R 2.13 and the SVN trunk, I observe odd behaviour with the --max-vsize command-line argument: 1. passing a largeish value (about 260M or greater) makes mem.limits() report NA for the vsize limit; gc() continues to report a value... 2. ...but that value (and the actual limit) is wr

[Rd] Same class name, different package

2011-07-21 Thread John Chambers
In principle, two separately developed packages could use the same class name, and a user could then attach both and attempt to use methods for both classes. That has never worked, but some changes have been added to r-devel to handle this case. The changes involve extending the "signature" c

Re: [Rd] requiring NAMESPACE re-installation marked as old.packages?

2011-07-21 Thread Uwe Ligges
Most if not all packages will need a re-installation, not only those you talked about (in particular there is a new snow on CRAN already). Hence I think it is not worth the effort to find out what "old" means. Please note this may change during the development cycle and you may even need one or

Re: [Rd] heatmap documentation typo

2011-07-21 Thread Martin Maechler
> Jonathan Dushoff > on Thu, 30 Jun 2011 14:09:30 -0400 writes: > Under Details, the documentation says "[if Rowv or Colv] is 'NULL', > _no reordering_ will be done for the corresponding side." In fact, as > explained elsewhere in the documentation, 'NA' is required, not

Re: [Rd] short documentation suggestion for "by" --- reference simplify2array and ave

2011-07-21 Thread Martin Maechler
> "iw" == ivo welch > on Fri, 8 Jul 2011 20:47:08 -0700 writes: iw> in the documentation for "by", please change the "See iw> also" section to \seealso{\code{\link{tapply}}, iw> \code{\link{simplify2array}}, \code{\link{ave}}} iw> (simplify2array, by, and ave should p

Re: [Rd] [R] Problem compiling in extra/xdr

2011-07-21 Thread Prof Brian Ripley
On Wed, 20 Jul 2011, Prof Brian Ripley wrote: 1) The current R-patched should compile src/extra/xdr on 32-bit Linux systems. 2) Longer-term or on a 64-bit platform the solution is to make use of libtirpc: you would need both this installed (common now) and its headers (unlikely). Then if y

Re: [Rd] apply() returning a list?

2011-07-21 Thread Prof Brian Ripley
On Wed, 20 Jul 2011, David A. Johnston wrote: I understand that the coercion to a list is somewhat trivial. The coercion is a little less obvious when apply()'s output is a matrix. For example, x = matrix(1:12, 3, 4) apply(x, 1, range) [,1] [,2] [,3] [1,]123 [2,] 10 11

[Rd] Saving data into a text or CSV file using foreach/doSNOW

2011-07-21 Thread Krystian Radlak
Dear list, I am using the foreach/doSNOW packages. I want to compute some data parallel and save results in every iteration into a text or CSV file, but then I see in file there are some errors (some data is not saved to file and there are empty lines). I have tested every function to append dat

Re: [Rd] apply() returning a list?

2011-07-21 Thread David A. Johnston
I understand that the coercion to a list is somewhat trivial. The coercion is a little less obvious when apply()'s output is a matrix. For example, > x = matrix(1:12, 3, 4) > apply(x, 1, range) [,1] [,2] [,3] [1,]123 [2,] 10 11 12 > structure(as.list(as.data.frame(apply(