Hi all,
After making some changes to a package that I created in R that uses Stan, I tried to re-install it, but I had updated the BH package in R. As a result, I cannot install a package that package anymore. The error that I get is:
In file included from stanExports_bayes_robust_reg.cc:5:
In file included from ./stanExports_bayes_robust_reg.h:20:
In file included from /Users/rchan/Library/R/3.5/library/rstan/include/rstan/rstaninc.hpp:3:
In file included from /Users/rchan/Library/R/3.5/library/rstan/include/rstan/stan_fit.hpp:35:
In file included from /Users/rchan/Library/R/3.5/library/StanHeaders/include/src/stan/services/diagnose/diagnose.hpp:10:
In file included from /Users/rchan/Library/R/3.5/library/StanHeaders/include/src/stan/model/test_gradients.hpp:7:
In file included from /Users/rchan/Library/R/3.5/library/StanHeaders/include/src/stan/model/log_prob_grad.hpp:4:
In file included from /Users/rchan/Library/R/3.5/library/StanHeaders/include/stan/math/rev/mat.hpp:12:
In file included from /Users/rchan/Library/R/3.5/library/StanHeaders/include/stan/math/prim/mat.hpp:344:
In file included from /Users/rchan/Library/R/3.5/library/StanHeaders/include/stan/math/prim/arr.hpp:46:
In file included from /Users/rchan/Library/R/3.5/library/StanHeaders/include/stan/math/prim/arr/functor/integrate_ode_rk45.hpp:17:
/Users/rchan/Library/R/3.5/library/BH/include/boost/numeric/odeint.hpp:31:10: fatal error: 'boost/numeric/odeint/stepper/runge_kutta_cash_karp54_classic.hpp' file not found
#include <boost/numeric/odeint/stepper/runge_kutta_cash_karp54_classic.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
17 warnings and 1 error generated.
make: *** [stanExports_bayes_robust_reg.o] Error 1
ERROR: compilation failed for package ‘BayesRobustRegSampling’
* removing ‘/Users/rchan/Library/R/3.5/library/BayesRobustRegSampling’
* restoring previous ‘/Users/rchan/Library/R/3.5/library/BayesRobustRegSampling’