[Rcpp-devel] a question about missing rcpp.h

2016-10-10 Thread Xinda Yang
Dear all I am using a Windows 7 system, R studio 0.99.467, R x64 3.3.1 and R tools 34. I have been trying to run sourceCpp("reglinRcpp.cpp") in my R studio and got the following error message. It seems clear that the issue is that the Rcpp.h file cannot be found. So I have tried to run set PKG

[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; /