AlbertoAlmuinha / bayesmodels

The Tidymodels Extension for Bayesian Models
https://albertoalmuinha.github.io/bayesmodels/
Other
54 stars 9 forks source link

Loading error #7

Closed Shafi2016 closed 3 years ago

Shafi2016 commented 3 years ago

Hello @AlbertoAlmuinha, I have installed bayesmodels from CRAN. But getting the following error when loading it.


library(bayesmodels)
Loading required package: parsnip
Loading required package: bayesforecast
Registered S3 method overwritten by 'quantmod':
  method            from
  as.zoo.data.frame zoo 
Registered S3 methods overwritten by 'bayesforecast':
  method      from    
  autoplot.ts forecast
  forecast.ts forecast
  fortify.ts  forecast
  print.garch tseries 
Error: package or namespace load failed for ‘bayesforecast’ in .doLoadActions(where, attach):
 error in load action .__A__.1 for package bayesforecast: Rcpp::loadModule(module = "stan_fit4SVM_mod", what = TRUE, env = ns, : Unable to load module "stan_fit4SVM_mod": function 'Rcpp_precious_remove' not provided by package 'Rcpp'
Error: package ‘bayesforecast’ could not be loaded
In addition: Warning messages:
1: package ‘bayesmodels’ was built under R version 4.1.1 
2: package ‘bayesforecast’ was built under R version 4.1.1
AlbertoAlmuinha commented 3 years ago

Hi @Shafi2016 ,

It seems like a problem with the Rccp package, have you tried to remove and install this package (and restart session) again?

Let me know if that works

Shafi2016 commented 3 years ago

Thanks a lot @AlbertoAlmuinha

It worked.

AlbertoAlmuinha commented 3 years ago

Great!