From d603ee910d82bd737986120bed71ccb673973dec Mon Sep 17 00:00:00 2001 From: Rory Nolan Date: Mon, 20 Jul 2020 16:26:28 -0700 Subject: [PATCH] Avoid tibble warning. When converting a nameless matrix to tibble with `as_tibble()`, you need to specify `.name_repair` to avoid a warning. --- R/boost_tree_data.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/boost_tree_data.R b/R/boost_tree_data.R index 9d19cd9f1..5b5865c46 100644 --- a/R/boost_tree_data.R +++ b/R/boost_tree_data.R @@ -178,7 +178,7 @@ set_pred( if (is.vector(x)) { x <- tibble(v1 = 1 - x, v2 = x) } else { - x <- as_tibble(x) + x <- as_tibble(x, .name_repair = "minimal") } colnames(x) <- object$lvl x