Skip to content

Commit ca843f4

Browse files
committed
use x instead of xcopy
1 parent 22f442f commit ca843f4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

R/loo_compare.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,9 @@ print.compare.loo <- function(x, ..., digits = 1, p_worse = TRUE) {
164164
if (NCOL(xcopy) >= 2) {
165165
xcopy <- xcopy[, c("elpd_diff", "se_diff")]
166166
}
167+
browser()
167168
if (p_worse &&
168-
"p_worse" %in% colnames(xcopy) &&
169+
"p_worse" %in% colnames(x) &&
169170
!inherits(x, "old_compare.loo")) {
170171
print(
171172
cbind(.fr(xcopy, digits),

0 commit comments

Comments
 (0)