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
___
> | | 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
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
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
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