I am trying to include the boost package in Rcpp file by:
#include <boost/math/distributions/binomial.hpp>
Since it is installed under the route of a high performance computing cluster, so I change the route to:
#include "/storage/icds/RISE/sw8/boost_1_81_0/boost/math/distributions/binomial.hpp"
However, within the binomial.hpp, there are other hpp files that I don't have the permission to alter their routes, so I failed to include the binomial.hpp.
Is there a way for me to include the package?
You are better off using the CRAN package BH together with Rcpp. See the Rcpp Gallery site for examples.
Here is a simple example that
You can
Rcpp::sourceCpp(filename_here)it.Note, of course, that you can also get Binomial from R via Rcpp. That is also documented at the Rcpp Gallery.