Skip to content

Commit 9b43e06

Browse files
committed
Merge branch 'diff-diagnostics' into model-names-as-column
2 parents a84154e + 16f67d4 commit 9b43e06

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

R/loo_compare.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,8 @@ print.compare.loo <- function(x, ..., digits = 1, p_worse = TRUE) {
184184
"or run unclass() on the object to print it.",
185185
call. = FALSE
186186
)
187+
if (!inherits(x, "data.frame")) {
188+
class(x) <- c(class(x), "data.frame")
187189
}
188190
xcopy <- x
189191
if (NCOL(xcopy) >= 2) {

0 commit comments

Comments
 (0)