diff --git a/R-package/R/xgb.importance.R b/R-package/R/xgb.importance.R index 51221b71b..0aa13afff 100644 --- a/R-package/R/xgb.importance.R +++ b/R-package/R/xgb.importance.R @@ -31,7 +31,7 @@ #' @export xgb.importance <- function(feature_names = NULL, filename_dump = NULL){ if (!class(feature_names) %in% c("character", "NULL")) { - stop("feature_names: Has to be a vector of character or NULL if model dump already contain feature name. See help to see where to get it.") + stop("feature_names: Has to be a vector of character or NULL if the model dump already contains feature name. Look at this function documentation to see where to get feature names.") } if (class(filename_dump) != "character" & file.exists(filename_dump)) { stop("filename_dump: Has to be a path to the model dump file.")