Rstan package: No such file or directory #include <boost/date_time/posix_time/posix_time_types.hpp>

I’m having troubles getting a package that uses stan to run. When I run roxygen2::roxygenise() I get the following fatal error:

   g++ -std=gnu++17 -I"/usr/local/lib/R/include" -DNDEBUG -I"../inst/include" -I"/usr/local/lib/R/site-library/StanHeaders/include/src" -DBOOST_DISABLE_ASSERTS -DEIGEN_NO_DEBUG -DBOOST_MATH_OVERFLOW_ERROR_POLICY=errno_on_error -DUSE_STANC3 -D_HAS_AUTO_PTR_ETC=0 -I'/usr/local/lib/R/site-library/Rcpp/include' -I'/usr/local/lib/R/site-library/RcppEigen/include' -I'/usr/local/lib/R/site-library/RcppParallel/include' -I'/usr/local/lib/R/site-library/rstan/include' -I'/usr/local/lib/R/site-library/StanHeaders/include' -I/usr/local/include   -I'/usr/local/lib/R/site-library/RcppParallel/include' -D_REENTRANT -DSTAN_THREADS   -fpic  -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -UNDEBUG -Wall -pedantic -g -O0 -fdiagnostics-color=always -c stanExports_NB.cc -o stanExports_NB.o
   In file included from /usr/local/lib/R/site-library/rstan/include/rstan/rstaninc.hpp:4
                    from stanExports_NB.h:9
                    from stanExports_NB.cc:5
   /usr/local/lib/R/site-library/rstan/include/rstan/stan_fit.hpp:15:10:fatal error: /date_time/posix_time/posix_time_types.hpp: No such file or directory
      15 | #include <boost/date_time/posix_time/posix_time_types.hpp>

Any ideas what might be causing this and how I can fix it? As always, thanks for the help!

What do you get from:

devtools::session_info("rstan")