I wanted to see if building an R package which depends on RStan was feasible for me and so I followed the demo : Step by step guide for creating a package that depends on RStan and have had a problem using roxygen.
I followed the demo step-by-step and recieve the following error when running , roxygen2::roxygenize() :
*Error in Rcpp::loadModule(module = “stan_fit4lm_mod”, what = TRUE, env = ns, : *
- Unable to load module “stan_fit4lm_mod”: Failed to initialize module pointer: Error in FUN(X[[i]], …): no such symbol _rcpp_module_boot_stan_fit4lm_mod in package rstanlmdemo*
I have seen a few similar problems across different boards  but nothing that has been able to fix it. Does anyone have any idea how to address this? Thanks in advance.