[R] Check warnings explicitly for model compatibility tests (#6114)

* [R] Check warnings explicitly for model compatibility tests

* Address reviewer's feedback
This commit is contained in:
Philip Hyunsu Cho
2020-09-15 10:49:48 -07:00
committed by GitHub
parent 33577ef5d3
commit 9e955fb9b0
2 changed files with 30 additions and 8 deletions

View File

@@ -132,7 +132,8 @@ class QuantileHistMaker: public TreeUpdater {
// We add this compatibility check because it's just recently that we (developers) began
// persuade R users away from using saveRDS() for model serialization. Hopefully, one day,
// everyone will be using xgb.save().
LOG(WARNING) << "Attempted to load interal configuration for a model file that was generated "
LOG(WARNING)
<< "Attempted to load internal configuration for a model file that was generated "
<< "by a previous version of XGBoost. A likely cause for this warning is that the model "
<< "was saved with saveRDS() in R or pickle.dump() in Python. We strongly ADVISE AGAINST "
<< "using saveRDS() or pickle.dump() so that the model remains accessible in current and "