Re: [Rd] length-0 list as dimnames

2012-06-05 Thread Benilton Carvalho
Thank you very much for pointing me to the correct part of the documentation (and apologies for that), Simon. Very much appreciated, b On 6 June 2012 00:43, Simon Urbanek wrote: > > On Jun 5, 2012, at 7:37 PM, Benilton Carvalho wrote: > >> Hi, >> >> I'm working on a package and observed a behavio

Re: [Rd] length-0 list as dimnames

2012-06-05 Thread Simon Urbanek
On Jun 5, 2012, at 7:37 PM, Benilton Carvalho wrote: > Hi, > > I'm working on a package and observed a behaviour that was suggested > to be incompatible with the documentation. > > The code below: > > x <- matrix(1:4, 2) > dimnames(x) <- list() > > works just fine. But checking the documentat

[Rd] length-0 list as dimnames

2012-06-05 Thread Benilton Carvalho
Hi, I'm working on a package and observed a behaviour that was suggested to be incompatible with the documentation. The code below: x <- matrix(1:4, 2) dimnames(x) <- list() works just fine. But checking the documentation for dimnames(), it states that if value is a list "its components are eit

[Rd] 7 arguments passed to .Internal(identical) which requires 6

2012-06-05 Thread Dan Tenenbaum
I know this has come up before on R-help (http://r.789695.n4.nabble.com/7-arguments-passed-to-Internal-identical-which-requires-6-td4548460.html) but I have a concise reproducible case that I wanted to share. Also, please note the Bioconductor scenario which is potentially seriously impacted by th

Re: [Rd] R CMD check: Sys.getenv("R_GSCMD") cannot contain full pathname (contrary to docs)

2012-06-05 Thread Henrik Bengtsson
On Tue, Jun 5, 2012 at 3:45 AM, Prof Brian Ripley wrote: > This is simply not true.  Sys.which() should accept absolute paths, and does > on my systems (even my Windows system).  However, it looks like you gave an > unescaped path containing spaces.  Most likely you need to include that path > in

Re: [Rd] model.frame and predvars

2012-06-05 Thread Terry Therneau
On 06/05/2012 11:32 AM, Prof Brian Ripley wrote: On 05/06/2012 16:17, Terry Therneau wrote: I was looking at how the model.frame method for lm works and comparing it to my own for coxph. The big difference is that I try to retain xlevels and predvars information for a new model frame, and lm d

Re: [Rd] model.frame and predvars

2012-06-05 Thread Prof Brian Ripley
On 05/06/2012 16:17, Terry Therneau wrote: I was looking at how the model.frame method for lm works and comparing it to my own for coxph. The big difference is that I try to retain xlevels and predvars information for a new model frame, and lm does not. I use a call to model.frame in predict.coxp

[Rd] model.frame and predvars

2012-06-05 Thread Terry Therneau
I was looking at how the model.frame method for lm works and comparing it to my own for coxph. The big difference is that I try to retain xlevels and predvars information for a new model frame, and lm does not. I use a call to model.frame in predict.coxph, which is why I went that route, but nev

Re: [Rd] Problems building R on Solaris (gcc 4.6, 64 bit)

2012-06-05 Thread Chander Ganesan
On 6/5/12 9:38 AM, Prof Brian Ripley wrote: On 04/06/2012 19:27, Chander Ganesan wrote: Hello, I'm attempting to build R on Solaris 64-bit using gcc4, and am running into the following error: ld.so.1: R: fatal: relocation error: R_AMD64_PC32: file /home/chander.ganesan/src/r/R-2.15.0/lib/libR.

[Rd] Memory leak during instantiation of a reference class?

2012-06-05 Thread Sander Maijers
Hi, I have a problem with a large data set wrapped in a reference class. I do that to access the data by reference from within various functions in a script. # The class definition: setRefClass("data", fields = list(h5_df= "list",

Re: [Rd] Problems building R on Solaris (gcc 4.6, 64 bit)

2012-06-05 Thread Prof Brian Ripley
On 04/06/2012 19:27, Chander Ganesan wrote: Hello, I'm attempting to build R on Solaris 64-bit using gcc4, and am running into the following error: ld.so.1: R: fatal: relocation error: R_AMD64_PC32: file /home/chander.ganesan/src/r/R-2.15.0/lib/libR.so: symbol main: value 0x28001597b8c does not

[Rd] Problems building R on Solaris (gcc 4.6, 64 bit)

2012-06-05 Thread Chander Ganesan
Hello, I'm attempting to build R on Solaris 64-bit using gcc4, and am running into the following error: ld.so.1: R: fatal: relocation error: R_AMD64_PC32: file /home/chander.ganesan/src/r/R-2.15.0/lib/libR.so: symbol main: value 0x28001597b8c does not fit I've noticed - from some lists, a

Re: [Rd] R CMD check: Sys.getenv("R_GSCMD") cannot contain full pathname (contrary to docs)

2012-06-05 Thread Prof Brian Ripley
This is simply not true. Sys.which() should accept absolute paths, and does on my systems (even my Windows system). However, it looks like you gave an unescaped path containing spaces. Most likely you need to include that path in double quotes (just as you would on a Windows shell). On Wed

Re: [Rd] Patch to add Beta binomial distribution. Mentor needed!

2012-06-05 Thread Prof Brian Ripley
On 05/06/2012 09:25, Ben Bolker wrote: Joan Maspons creaf.uab.cat> writes: 2012/6/1 Tim Triche, Jr. gmail.com> It's in VGAM, remember? Not a bug. -- *A model is a lie that helps you see the truth.* * * Howard Skipper Yes,

Re: [Rd] Patch to add Beta binomial distribution. Mentor needed!

2012-06-05 Thread Ben Bolker
Joan Maspons creaf.uab.cat> writes: > > 2012/6/1 Tim Triche, Jr. gmail.com> > > > It's in VGAM, remember? Not a bug. > > > > -- > > *A model is a lie that helps you see the truth.* > > * > > * > > Howard Skipper > > > > > Yes, it's