[Rd] introspective capabilities

2010-08-27 Thread Christophe Rhodes
Hi, Is there any way, from R code, to perform introspection as to where certain names acquired their values? The specific functionality I'm looking for in this case is to be able to request my editor to view the definition corresponding to a name in its original source location (presuming for the

[Rd] Is it safe not to coerce matrices with as.double() in .C()?

2010-08-27 Thread Liaw, Andy
I'd very much appreciate guidance on this. A user reported that the as.double() coercion used inside the .C() call for a function in my package (specifically, randomForest:::predict.randomForest()) is taking up significant amount of time when called repeatedly, and Removing some of these reduce

Re: [Rd] Is it safe not to coerce matrices with as.double() in .C()?

2010-08-27 Thread peter dalgaard
On Aug 27, 2010, at 2:44 PM, Liaw, Andy wrote: > I'd very much appreciate guidance on this. A user reported that the > as.double() coercion used inside the .C() call for a function in my > package (specifically, randomForest:::predict.randomForest()) is > taking up significant amount of time w

[Rd] NEWS and readNEWS

2010-08-27 Thread Hadley Wickham
readNEWS() states: Read R's ‘NEWS’ file or a similarly formatted one. This is an experimental feature, new in R 2.4.0 and may change in several ways and news() also indicates that this tool is supposed to work with non-R news files. However, I've not been able to get readNEWS to

Re: [Rd] Is it safe not to coerce matrices with as.double() in .C()?

2010-08-27 Thread Prof Brian Ripley
On Fri, 27 Aug 2010, peter dalgaard wrote: On Aug 27, 2010, at 2:44 PM, Liaw, Andy wrote: I'd very much appreciate guidance on this. A user reported that the as.double() coercion used inside the .C() call for a function in my package (specifically, randomForest:::predict.randomForest()) is t

Re: [Rd] Is it safe not to coerce matrices with as.double() in .C()?

2010-08-27 Thread Liaw, Andy
From: Prof Brian Ripley > > On Fri, 27 Aug 2010, peter dalgaard wrote: > > > > > On Aug 27, 2010, at 2:44 PM, Liaw, Andy wrote: > > > >> I'd very much appreciate guidance on this. A user > reported that the > >> as.double() coercion used inside the .C() call for a function in my > >> package (s

Re: [Rd] NEWS and readNEWS

2010-08-27 Thread Kurt Hornik
> Hadley Wickham writes: > readNEWS() states: > Read R's ‘NEWS’ file or a similarly formatted one. This is an > experimental feature, new in R 2.4.0 and may change in several > ways > and news() also indicates that this tool is supposed to work with > non-R news files. Howeve

Re: [Rd] Speeding up matrix multiplies

2010-08-27 Thread James Cloos
I just tried out the effects of using R's NA value¹ with C arithmetic on an amd64 linux box. I always got a NAN result for which R's R_IsNA() would return true. At least on this platform, NAN's propagate w/o a change in their lower 32 bits. If NA is supposed to propagate the way NaN is spec'ed t

Re: [Rd] Speeding up transpose

2010-08-27 Thread Hervé Pagès
Hi Radford, On 08/25/2010 07:50 PM, Radford Neal wrote: I've looked at how to speed up the transpose function in R (ie, t(X)). The existing code does the work with loops like the following: for (i = 0; i< len; i++) REAL(r)[i] = REAL(a)[(i / ncol) + (i % ncol) * nrow]; It