===============================
R CMD BUILD
===============================
* checking for file ‘CENTRE/DESCRIPTION’ ... OK
* preparing ‘CENTRE’:
* checking DESCRIPTION meta-information ... OK
* installing the package (it is needed to build vignettes)
* creating vignettes ... ERROR
--- re-building ‘CENTRE_vignette.Rmd’ using rmarkdown
Quitting from CENTRE_vignette.Rmd:253-259 [prediction]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `xgb.get.handle()`:
! 'xgb.Booster' object is corrupted or is from an incompatible XGBoost version.
---
Backtrace:
▆
1. └─CENTRE::centrePrediction(celltype_features, generic_features)
2. ├─stats::predict(xgb_model, feature_matrix)
3. └─xgboost:::predict.xgb.Booster(xgb_model, feature_matrix)
4. └─xgboost:::xgb.best_iteration(object)
5. └─xgboost::xgb.attr(bst, "best_iteration")
6. └─xgboost:::xgb.get.handle(object)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'CENTRE_vignette.Rmd' failed with diagnostics:
'xgb.Booster' object is corrupted or is from an incompatible XGBoost version.
--- failed re-building ‘CENTRE_vignette.Rmd’
SUMMARY: processing the following file failed:
‘CENTRE_vignette.Rmd’
Error: Vignette re-building failed.
Execution halted