From 3501a7d58cb67922179a5f48c32d70776f1de6a3 Mon Sep 17 00:00:00 2001 From: James Lamb Date: Fri, 4 Jun 2021 23:20:14 -0500 Subject: [PATCH] [R-package] remove unused argument in early stopping callback --- R-package/R/callback.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R-package/R/callback.R b/R-package/R/callback.R index 8d3f58222507..22bef94f0ae2 100644 --- a/R-package/R/callback.R +++ b/R-package/R/callback.R @@ -324,7 +324,7 @@ cb.early.stop <- function(stopping_rounds, first_metric_only = FALSE, verbose = } # Create callback - callback <- function(env, finalize = FALSE) { + callback <- function(env) { # Check for empty evaluation if (is.null(eval_len)) {