From 67fc1dd99093022df99c99720b39985684fc6ce0 Mon Sep 17 00:00:00 2001 From: Tianqi Chen Date: Sat, 6 Sep 2014 18:37:34 -0700 Subject: [PATCH 1/2] Update xgb.DMatrix.save.R --- R-package/R/xgb.DMatrix.save.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R-package/R/xgb.DMatrix.save.R b/R-package/R/xgb.DMatrix.save.R index 4f4f49399..ee7e347ca 100644 --- a/R-package/R/xgb.DMatrix.save.R +++ b/R-package/R/xgb.DMatrix.save.R @@ -2,7 +2,7 @@ #' #' Save xgb.DMatrix object to binary file #' -#' @param DMatrix the model object. +#' @param DMatrix the DMatrix object #' @param fname the name of the binary file. #' #' @examples From e7bce3a940b0d1e2a5a19737f1a530ef239f2acc Mon Sep 17 00:00:00 2001 From: Tianqi Chen Date: Sat, 6 Sep 2014 18:38:01 -0700 Subject: [PATCH 2/2] Update xgb.DMatrix.save.R --- R-package/R/xgb.DMatrix.save.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R-package/R/xgb.DMatrix.save.R b/R-package/R/xgb.DMatrix.save.R index ee7e347ca..f409a183f 100644 --- a/R-package/R/xgb.DMatrix.save.R +++ b/R-package/R/xgb.DMatrix.save.R @@ -22,6 +22,6 @@ xgb.DMatrix.save <- function(DMatrix, fname) { PACKAGE = "xgboost") return(TRUE) } - stop("xgb.save: the input must be either xgb.DMatrix or xgb.Booster") + stop("xgb.DMatrix.save: the input must be xgb.DMatrix") return(FALSE) }