Re: [Rd] stack imbalance in max.col for non-real matrices

2013-04-19 Thread Prof Brian Ripley
On 17/04/2013 21:25, Michael Lawrence wrote: It's tough to reliably reproduce, but I often get stack imbalance warnings when calling max.col() on non-real/double matrix. The code is conditionally PROTECTing but not incrementing its nprot counter for the eventual UNPROTECT. Pretty sure this would

[Rd] Publishing my Package on CRAN

2013-04-19 Thread liuyipei
Hi, I have a simple package with two functions. It essentially implements estimators and data simulation for a paper I am writing for immunology (and in some sense, ecology). How long is the typical CRAN review process -- and how long will it take to get through the process? How selective is it

Re: [Rd] how to control the environment of a formula

2013-04-19 Thread Therneau, Terry M., Ph.D.
I went through the same problem and discovery process 2 years ago with the survival package. With pspline() terms the return object from coxph includes a simple 6 line function for enhanced printout, which by default carried along another 30 irrelevant things some of which were huge. I person

Re: [Rd] stack imbalance in max.col for non-real matrices

2013-04-19 Thread Martin Morgan
On 04/19/2013 01:16 AM, Prof Brian Ripley wrote: On 17/04/2013 21:25, Michael Lawrence wrote: It's tough to reliably reproduce, but I often get stack imbalance warnings when calling max.col() on non-real/double matrix. The code is conditionally PROTECTing but not incrementing its nprot counter f

Re: [Rd] how to control the environment of a formula

2013-04-19 Thread Duncan Murdoch
On 13-04-18 11:39 AM, Thomas Alexander Gerds wrote: Dear Duncan thank you for taking the time to answer my questions! It will be quite some work to delete all the objects generated inside the function ... but if there is no other way to avoid a large environment then this is what I will do. It

Re: [Rd] how to control the environment of a formula

2013-04-19 Thread Duncan Murdoch
On 13-04-19 8:41 AM, Therneau, Terry M., Ph.D. wrote: I went through the same problem and discovery process 2 years ago with the survival package. With pspline() terms the return object from coxph includes a simple 6 line function for enhanced printout, which by default carried along anoth

Re: [Rd] Linux distribution with gcc 4.8 and AddressSanitizer ?

2013-04-19 Thread Thomas Petzoldt
On 18.04.2013 18:05, José Matos wrote: On Thursday 18 April 2013 17:38:06 Thomas Petzoldt wrote: Dear R developers, I've got an information from Prof. Ripley regarding a bug found with AdressSanitizer in one of our packages. It is now fixed, thank you for this information. Now, I would like to

Re: [Rd] how to control the environment of a formula

2013-04-19 Thread Therneau, Terry M., Ph.D.
Duncan, I stand by all my comments. Well behaved function -- those that look only at their input arguments -- do just fine with a simple env. Now as to formulas --- the part of R that has most aggressively messed with normal evaluation rules. It is quite possible that there is/was no other way

Re: [Rd] Linux distribution with gcc 4.8 and AddressSanitizer ?

2013-04-19 Thread Prof Brian Ripley
On 19/04/2013 18:22, Thomas Petzoldt wrote: On 18.04.2013 18:05, José Matos wrote: On Thursday 18 April 2013 17:38:06 Thomas Petzoldt wrote: Dear R developers, I've got an information from Prof. Ripley regarding a bug found with AdressSanitizer in one of our packages. It is now fixed, thank yo

Re: [Rd] how to control the environment of a formula

2013-04-19 Thread Thomas Alexander Gerds
hmm. I have tested a bit more, and found this perhaps more difficult solve situation. even though I delete x, since x is part of the output of the formula, the size of the object is twice as much as it should be: test <- function(x){ x <- rnorm(100) out <- list(x=x) rm(x) out$f <- as.

Re: [Rd] Linux distribution with gcc 4.8 and AddressSanitizer ?

2013-04-19 Thread Simon Urbanek
On Apr 19, 2013, at 2:19 PM, Prof Brian Ripley wrote: > On 19/04/2013 18:22, Thomas Petzoldt wrote: >> On 18.04.2013 18:05, José Matos wrote: >>> On Thursday 18 April 2013 17:38:06 Thomas Petzoldt wrote: Dear R developers, I've got an information from Prof. Ripley regarding a bug

[Rd] R 3.0, Rtools3.0,l Windows7 64-bit, and permission agony

2013-04-19 Thread Kevin Coombes
Having finally found some free time, I was going to use it to update a bunch of R packages from 2.15 to 3.0. I am running Windows 7, 64-bit professional. This is on a brand-new laptop using vanilla settings when installing the operating system. Problem 1: I installed R3.0 to the default loca

Re: [Rd] R 3.0, Rtools3.0,l Windows7 64-bit, and permission agony

2013-04-19 Thread Duncan Murdoch
On 13-04-19 5:37 PM, Kevin Coombes wrote: Having finally found some free time, I was going to use it to update a bunch of R packages from 2.15 to 3.0. I am running Windows 7, 64-bit professional. This is on a brand-new laptop using vanilla settings when installing the operating system. Problem

Re: [Rd] R 3.0, Rtools3.0,l Windows7 64-bit, and permission agony

2013-04-19 Thread Gabor Grothendieck
On Fri, Apr 19, 2013 at 8:47 PM, Duncan Murdoch wrote: > On 13-04-19 5:37 PM, Kevin Coombes wrote: >> >> Having finally found some free time, I was going to use it to update a >> bunch of R packages from 2.15 to 3.0. >> >> I am running Windows 7, 64-bit professional. This is on a brand-new >> lap