Skip to content

Commit 81265db

Browse files
committed
forgot one rep.int()
1 parent f9770f5 commit 81265db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/permshap.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ permshap.default <- function(object, X, bg_X, pred_fun = stats::predict,
9090
precalc <- list(
9191
Z = Z,
9292
Z_code = rowpaste(Z),
93-
bg_X_rep = rep_rows(bg_X, rep(seq_len(bg_n), times = m_exact))
93+
bg_X_rep = rep_rows(bg_X, rep.int(seq_len(bg_n), m_exact))
9494
)
9595

9696
if (m_exact * bg_n > 2e5) {

0 commit comments

Comments
 (0)