Fix for CRAN Submission (#1826)

* fix cran check

* change required R version because of utils::globalVariables

* temporary commit, monotone not working

* fix test

* fix doc

* fix doc

* fix cran note and warning

* improve checks

* fix urls
This commit is contained in:
Tong He
2016-12-02 20:19:03 -08:00
committed by Tianqi Chen
parent 27ca50e2c2
commit 2f3958a455
15 changed files with 40 additions and 26 deletions

View File

@@ -44,7 +44,8 @@
#' xgb.importance(colnames(agaricus.train$data), model = bst)
#'
#' # Same thing with co-occurence computation this time
#' xgb.importance(colnames(agaricus.train$data), model = bst, data = agaricus.train$data, label = agaricus.train$label)
#' xgb.importance(colnames(agaricus.train$data), model = bst,
#' data = agaricus.train$data, label = agaricus.train$label)
#'
#' @export
xgb.importance <- function(feature_names = NULL, model = NULL, data = NULL, label = NULL, target = function(x) ( (x + label) == 2)){