Cannot compile package after updating BH package

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’

What is packageVersion("BH")?

It looks like some filenames got messed up with the upload of BH 1.72.0-1 that are being fixed for 1.72.0-2. It should resolve itself in a day or two or you can install BH from GitHub with

remotes::install_github("eddelbuettel/bh")
3 Likes

The package version that I have installed is: ‘1.72.0.1’

You need something earlier or later than that.

BH 1.72.0-2 is now on CRAN with the update

inst/include/boost/numeric/odeint/stepper/: Correct accidental
renaming in this directory, only rename in …/generation/

https://cran.r-project.org/web/packages/BH/ChangeLog

1 Like

Although not in binary package form yet.