Re: [Rcpp-devel] Parameter Naming

2011-08-23 Thread Darren Cook
P.S. I think it was obvious from the context that this version contained a typo but, just in case anyone was confused, it should've looked like: nearlyAsGoodDemo <- cxxfunction(signature(x_="integer"), plugin='Rcpp', body=' Rcpp::IntegerVector x(x_); return 2*x; ') Darren ___

Re: [Rcpp-devel] Parameter Naming

2011-08-23 Thread Darren Cook
> | | So, my proposal would be to use the same names in the signature that you > | | intend to use in the C++ code, but with underline appended. I.e. > > I was sloppy: compile-time errors. I.e. this: > > errorDemo <- cxxfunction(signature(badName="integer"), plugin='Rcpp', body=' > Rcpp::I

Re: [Rcpp-devel] Parameter Naming (was: Speed gain assistance)

2011-08-18 Thread Dirk Eddelbuettel
On 18 August 2011 at 08:44, Dirk Eddelbuettel wrote: | | On 18 August 2011 at 16:24, Darren Cook wrote: | | I'd like to shamelessly hijack Christopher Wray's question to ask if | | there is a convention for parameter naming with Rcpp and inline. Well, | | actually I'll propose one, to then see wh

Re: [Rcpp-devel] Parameter Naming (was: Speed gain assistance)

2011-08-18 Thread Dirk Eddelbuettel
On 18 August 2011 at 16:24, Darren Cook wrote: | I'd like to shamelessly hijack Christopher Wray's question to ask if | there is a convention for parameter naming with Rcpp and inline. Well, | actually I'll propose one, to then see what others prefer. | | First I would propose to use long variabl

[Rcpp-devel] Parameter Naming (was: Speed gain assistance)

2011-08-18 Thread Darren Cook
I'd like to shamelessly hijack Christopher Wray's question to ask if there is a convention for parameter naming with Rcpp and inline. Well, actually I'll propose one, to then see what others prefer. First I would propose to use long variable names, instead of abbreviations, in both the CPP and R s