refine vignette

This commit is contained in:
hetong
2014-08-29 22:40:07 -07:00
parent 04c520ea3d
commit 84607a34a5
2 changed files with 44 additions and 15 deletions

View File

@@ -21,6 +21,7 @@ xgb.save <- function(model, fname) {
.Call("XGBoosterSaveModel_R", model, fname, PACKAGE = "xgboost")
return(TRUE)
}
stop("xgb.save: the input must be either xgb.DMatrix or xgb.Booster")
stop("xgb.save: the input must be xgb.Booster. Use xgb.DMatrix.save to save
xgb.DMatrix object.")
return(FALSE)
}