Re: [Rcpp-devel] Over-loading R functions

2016-03-26 Thread Sparapani, Rodney
Hi Dirk: On 3/26/16, 5:38 PM, "Dirk Eddelbuettel" wrote: >Happy Easter to you too. I don't understand your point, I am afraid. If >you >think you need an rnorm variant with vector arguments for mean and sd, why >don't you just write one, as you did here, and release it as a package? >As I >und

Re: [Rcpp-devel] Over-loading R functions

2016-03-26 Thread Dirk Eddelbuettel
Hi Rodney, On 26 March 2016 at 21:34, Sparapani, Rodney wrote: | Hi Gang: | | I was recently explaining to someone that functions like Rcpp::rnorm only | take scalars. Since the R function takes vectors, the OP was asking me | why? | I didn¹t have a good answer. This morning, I started thinkin

[Rcpp-devel] Over-loading R functions

2016-03-26 Thread Sparapani, Rodney
Hi Gang: I was recently explaining to someone that functions like Rcpp::rnorm only take scalars. Since the R function takes vectors, the OP was asking me why? I didn¹t have a good answer. This morning, I started thinking about it and I realized this could easily be handled by over-loading (I kno