Re: [Rd] C code validation

2012-07-27 Thread Prof Brian Ripley
On 27/07/2012 23:52, Adrian Duşa wrote: Dear R-devel, I'm trying to validate the results from a C function, against a (trial and tested) older R function. For reasons unknown to me, the C function seems to give different result sometimes at each trial, even with the very same data. See the adv

[Rd] C code validation

2012-07-27 Thread Adrian Duşa
Dear R-devel, I'm trying to validate the results from a C function, against a (trial and tested) older R function. For reasons unknown to me, the C function seems to give different result sometimes at each trial, even with the very same data. These are the relevant outputs from R: > library(QCA

Re: [Rd] Version of substitute that evaluates it's first argument

2012-07-27 Thread William Dunlap
For what it's worth, S+'s substitute() has had an evaluate=FALSE argument to substitute() for quite a while (I think it came with Sv4). evaluate=TRUE means to evaluate its first arument: > myCall <- call("myFunc", as.name("arg1")) > substitute(myCall, list(arg1=as.name("newArg1")), evaluate=TR

[Rd] Version of substitute that evaluates it's first argument

2012-07-27 Thread Hadley Wickham
Hi all, Does there already exist a version of substitute that evaluates it's first argument? (i.e. it accepts an already quoted expression). This seems like something that's pretty handy, but I haven't found any existing function to do it: substitute_e <- function(expr, env) { eval(substitute(

Re: [Rd] Rconfig.h & unsupported architectures

2012-07-27 Thread Hadley Wickham
> Actually, probably not the issue. You are getting it from one of R's headers > so it may have gotten there while you configured R on your machine. Which I didn't do, since I got a pre-built binary from CRAN. I guess I'll try re-installing and hope the problem goes away. Hadley -- Assistant P

Re: [Rd] Problem in vignette packaging of Sweave in utils package

2012-07-27 Thread Paul Johnson
On Fri, Jul 27, 2012 at 9:54 AM, Duncan Murdoch wrote: > On 12-07-27 1:23 AM, Paul Johnson wrote: >> >> New help request below >> >> On Sat, Jul 7, 2012 at 7:25 AM, Duncan Murdoch >> wrote: >>> >>> On 12-07-03 1:21 PM, Paul Johnson wrote: In ?Sweave, it refers to Sweave User Manual

Re: [Rd] Problem in vignette packaging of Sweave in utils package

2012-07-27 Thread Duncan Murdoch
On 12-07-27 1:23 AM, Paul Johnson wrote: New help request below On Sat, Jul 7, 2012 at 7:25 AM, Duncan Murdoch wrote: On 12-07-03 1:21 PM, Paul Johnson wrote: In ?Sweave, it refers to Sweave User Manual. In the doc folder of utils package, I see "Sweave.pdf". However, I can't find it from w

Re: [Rd] Convenience function to get unevaluated ... function arguments

2012-07-27 Thread Bert Gunter
Feel free. -- Bert On Thu, Jul 26, 2012 at 7:52 AM, Warnes, Gregory wrote: > I'll be glad to add it to the gtools package if it doesn't (immediately) go > into one of the core packages. > > Sent from my iPhone > > On Jul 26, 2012, at 7:35 AM, "Bert Gunter" wrote: > >> Indeed! >> >> -- Bert >>

Re: [Rd] Convenience function to get unevaluated ... function arguments

2012-07-27 Thread Warnes, Gregory
I'll be glad to add it to the gtools package if it doesn't (immediately) go into one of the core packages. Sent from my iPhone On Jul 26, 2012, at 7:35 AM, "Bert Gunter" wrote: > Indeed! > > -- Bert > > On Wed, Jul 25, 2012 at 3:59 PM, David Winsemius > wrote: >> >> On Jul 24, 2012, at 4: