Skip to content

Commit d603ee9

Browse files
authored
Avoid tibble warning.
When converting a nameless matrix to tibble with `as_tibble()`, you need to specify `.name_repair` to avoid a warning.
1 parent de6e9cd commit d603ee9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/boost_tree_data.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ set_pred(
178178
if (is.vector(x)) {
179179
x <- tibble(v1 = 1 - x, v2 = x)
180180
} else {
181-
x <- as_tibble(x)
181+
x <- as_tibble(x, .name_repair = "minimal")
182182
}
183183
colnames(x) <- object$lvl
184184
x

0 commit comments

Comments
 (0)