Re: [Rcpp-devel] how to use R distributions while using RcppArmadillo

2016-09-16 Thread Dirk Eddelbuettel
On 16 September 2016 at 16:59, Amina Shahzadi wrote: | Hello Friends | | I tried to find that how we can use pnorm(), dpois() etc. using arma library. | It is easy to use using Rcpp. Would anybody help ? Here you go: R> library(Rcpp) R> cppFunction("arma::vec foo() { return as( rnorm(5) ); }",

[Rcpp-devel] how to use R distributions while using RcppArmadillo

2016-09-15 Thread Amina Shahzadi
Hello Friends I tried to find that how we can use pnorm(), dpois() etc. using arma library. It is easy to use using Rcpp. Would anybody help ? Thank you -- *Amina Shahzadi* ___ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://l