Skip to content

Commit 8cef8ba

Browse files
committed
don't access new xgboost function directly
1 parent 7389222 commit 8cef8ba

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

R/boost_tree.R

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,11 @@ xgb_train <- function(
345345
arg_list$num_class <- num_class
346346
}
347347

348-
param_names <- names(formals(xgboost::xgb.params))
348+
param_names <- names(
349+
formals(
350+
getFromNamespace("xgb.params", ns = "xgboost")
351+
)
352+
)
349353

350354
if (any(param_names %in% names(others))) {
351355
elements <- param_names[param_names %in% names(others)]

0 commit comments

Comments
 (0)