Re: [Rcpp-devel] How to call a function from an R package in cpp code

2016-10-11 Thread Dirk Eddelbuettel
On 11 October 2016 at 15:54, Amina Shahzadi wrote: | I want to use dgev(x,shape=1,scale=1,location=0,log=FALSE) function of an R | package "FAdist" in the framework of Rcpp. How can I call that? | | For example for the Poisson distribution which is basic function of R I have | written the followi

[Rcpp-devel] How to call a function from an R package in cpp code

2016-10-10 Thread Amina Shahzadi
Hi Rcpp Friends I want to use dgev(x,shape=1,scale=1,location=0,log=FALSE) function of an R package "FAdist" in the framework of Rcpp. How can I call that? For example for the Poisson distribution which is basic function of R I have written the following code. #include using namespace Rcpp; /