Skip to content

Commit 23a79c0

Browse files
committed
fix failing test
1 parent 16f67d4 commit 23a79c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/loo_compare.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ loo_compare.default <- function(x, ...) {
175175
#' approximation based probability of each model having worse performance than
176176
#' the best model? The default is `TRUE`.
177177
print.compare.loo <- function(x, ..., digits = 1, p_worse = TRUE) {
178-
if (!inherits(x, "data.frame")) {
178+
if (!inherits(x, "data.frame") && !inherits(x, "old_compare.loo")) {
179179
class(x) <- c(class(x), "data.frame")
180180
}
181181
xcopy <- x

0 commit comments

Comments
 (0)