Re: [Rd] R v2.10.0: Doc clarification for cross references and where are we heading?

2009-09-24 Thread Romain Francois
On 09/24/2009 05:21 AM, Gabor Grothendieck wrote: On Wed, Sep 23, 2009 at 10:54 PM, Duncan Murdochmurd...@stats.uwo.ca wrote: - Ways to link from man pages to vignettes. The reverse would be nice, but it's not possible with the current design, so that would be far off. If feasible I

Re: [Rd] R v2.10.0: Doc clarification for cross references and where are we heading?

2009-09-24 Thread Duncan Murdoch
On 23/09/2009 11:21 PM, Gabor Grothendieck wrote: On Wed, Sep 23, 2009 at 10:54 PM, Duncan Murdoch murd...@stats.uwo.ca wrote: - Ways to link from man pages to vignettes. The reverse would be nice, but it's not possible with the current design, so that would be far off. If feasible I would

Re: [Rd] R v2.10.0: Doc clarification for cross references and where are we heading?

2009-09-24 Thread Romain Francois
On 09/24/2009 11:28 AM, Duncan Murdoch wrote: On 23/09/2009 11:21 PM, Gabor Grothendieck wrote: On Wed, Sep 23, 2009 at 10:54 PM, Duncan Murdoch murd...@stats.uwo.ca wrote: - Ways to link from man pages to vignettes. The reverse would be nice, but it's not possible with the current design, so

Re: [Rd] R v2.10.0: Doc clarification for cross references and where are we heading?

2009-09-24 Thread Duncan Murdoch
On 24/09/2009 5:42 AM, Romain Francois wrote: On 09/24/2009 11:28 AM, Duncan Murdoch wrote: On 23/09/2009 11:21 PM, Gabor Grothendieck wrote: On Wed, Sep 23, 2009 at 10:54 PM, Duncan Murdoch murd...@stats.uwo.ca wrote: - Ways to link from man pages to vignettes. The reverse would be nice, but

Re: [Rd] Crash due to extreme example

2009-09-24 Thread Duncan Murdoch
Now fixed, in R-devel and R-patched. Duncan Murdoch On 23/09/2009 7:10 PM, Saptarshi Guha wrote: Hello, I was trying this bit of code (i know it is an extreme case) g=function(r){ if(r==1) return(list(x=1)) else return(list(x=g(r-1))) } For z=g(500), the code runs

Re: [Rd] R v2.10.0: Doc clarification for cross references and where are we heading?

2009-09-24 Thread Romain Francois
On 09/24/2009 12:04 PM, Duncan Murdoch wrote: On 24/09/2009 5:42 AM, Romain Francois wrote: On 09/24/2009 11:28 AM, Duncan Murdoch wrote: On 23/09/2009 11:21 PM, Gabor Grothendieck wrote: On Wed, Sep 23, 2009 at 10:54 PM, Duncan Murdoch murd...@stats.uwo.ca wrote: - Ways to link from man

Re: [Rd] R v2.10.0: Doc clarification for cross references and where are we heading?

2009-09-24 Thread Duncan Murdoch
On 24/09/2009 6:29 AM, Romain Francois wrote: On 09/24/2009 12:04 PM, Duncan Murdoch wrote: On 24/09/2009 5:42 AM, Romain Francois wrote: On 09/24/2009 11:28 AM, Duncan Murdoch wrote: On 23/09/2009 11:21 PM, Gabor Grothendieck wrote: On Wed, Sep 23, 2009 at 10:54 PM, Duncan Murdoch

Re: [Rd] R v2.10.0: Doc clarification for cross references and where are we heading?

2009-09-24 Thread Duncan Murdoch
On 24/09/2009 7:30 AM, Duncan Murdoch wrote: On 24/09/2009 6:29 AM, Romain Francois wrote: On 09/24/2009 12:04 PM, Duncan Murdoch wrote: On 24/09/2009 5:42 AM, Romain Francois wrote: On 09/24/2009 11:28 AM, Duncan Murdoch wrote: On 23/09/2009 11:21 PM, Gabor Grothendieck wrote: On

Re: [Rd] R + C + Lapack toy regression example

2009-09-24 Thread Douglas Bates
On Wed, Sep 23, 2009 at 2:39 AM, Vinh Nguyen vqngu...@uci.edu wrote: dear list, since matrix manipulations is often of interest in statistical computations, i'd like to get a working example of using Lapack for regression.  However, i run into an error. My matrix-lapack-example.c file:

Re: [Rd] Crash due to extreme example

2009-09-24 Thread Saptarshi Guha
Thanks. What caused problem? Regards Saptarshi On Thu, Sep 24, 2009 at 6:20 AM, Duncan Murdoch murd...@stats.uwo.ca wrote: Now fixed, in R-devel and R-patched. Duncan Murdoch On 23/09/2009 7:10 PM, Saptarshi Guha wrote: Hello, I was trying this bit of code (i know it is an extreme case)

Re: [Rd] Crash due to extreme example

2009-09-24 Thread Duncan Murdoch
On 9/24/2009 11:00 AM, Saptarshi Guha wrote: Thanks. What caused problem? R builds up the element name (x$x$x ...) in a fixed size buffer. There was code to detect when the buffer was full and stop building the name, but it was buggy. I patched the bug. Duncan Murdoch Regards

Re: [Rd] R + C + Lapack toy regression example

2009-09-24 Thread Vinh Nguyen
thank you William Dunlap and professor Bates for your responses. Since the first argument is always an N for linear regression, i just placed const char* trans = N; in my .c file and things worked. See some comments below. On Thu, Sep 24, 2009 at 5:50 AM, Douglas Bates ba...@stat.wisc.edu wrote:

Re: [Rd] R + C + Lapack toy regression example

2009-09-24 Thread Vinh Nguyen
On Thu, Sep 24, 2009 at 11:49 AM, Simon Urbanek simon.urba...@r-project.org wrote: As Doug pointed out you don't want to be using .C(). As for matrix manipulations - they are usually done directly on the objects which are vectors stored in column-major order. i meant .Call(). also, sorry for

[Rd] unexpected behavior of `[-` method for class unit.arithmetic

2009-09-24 Thread baptiste auguie
Dear list, Consider the following, library(grid) w = unit.c(unit(1, in), unit(2, in)) w2 = w + unit(1, mm) w[2] - 0 w2[2] - 0 convertUnit(w, mm) #[1] 25.4mm 0mm convertUnit(w2, mm) #Error in grid.Call(L_convert, x, as.integer(whatfrom), as.integer(whatto), : # INTEGER() can only be applied

[Rd] speedup approxfun (code suggestion)

2009-09-24 Thread Thomas Petzoldt
Dear R developers, this e-mail concerns a code suggestion to slightly change approxfun, so that it is more efficient when called several times. We are using approxfun (not approx) to update external variables (time-series) to current time points while integrating our ODE models. It is not

[Rd] crash with NAs in subscripted assignment of a raw vector

2009-09-24 Thread Hervé Pagès
Hi, x - charToRaw(ABCDEFGx) x[c(1:3, NA, 6)] - x[8] *** caught segfault *** address 0x8402423f, cause 'memory not mapped' Possible actions: 1: abort (with core dump, if enabled) 2: normal R exit 3: exit R without saving workspace 4: exit R saving workspace Cheers, H.

Re: [Rd] unexpected behavior of `[-` method for class unit.arithmetic

2009-09-24 Thread Paul Murrell
Hi The bit you found that says ... # Write [-.unit methods too ?? ... is the crucial bit. Would it be possible to add such a method? Almost certainly, it just needs someone to repeatedly bug the person who can make the change :) Thanks for the suggestion for code BTW; I'll take a look

Re: [Rd] crash with NAs in subscripted assignment of a raw vector

2009-09-24 Thread Seth Falcon
2009/9/24 Hervé Pagès hpa...@fhcrc.org:   x - charToRaw(ABCDEFGx)   x[c(1:3, NA, 6)] - x[8]   *** caught segfault ***  address 0x8402423f, cause 'memory not mapped' Thanks for the report. I have a fix which I will commit after some testing. -- Seth Falcon | @sfalcon |