I have a created a custom R package that makes use of the autodiff capabilities of stan’s math library. I have been able to compile it and get it to work on my personal laptop, but I’ve been having trouble installing the package on my department server.
When I try to install the package, it fails with the following error message.
/home/nspencer/R/x86_64-redhat-linux-gnu-library/3.5/StanHeaders/include/stan/math/prim/arr/functor/integrate_1d.hpp:7:46: fatal error: boost/math/quadrature/exp_sinh.hpp: No such file or directory
It seems as though StanHeaders is having trouble finding certain Boost files (like boost/math/quadrature/exp_sinh.hpp). I have been having trouble figuring out how to fix this problem. Has anyone encountered this before?
The installation instructions here provide information on how to specify the location of boost when compiling a simple program. Is there a similar approach I can take for the entire R package?