Skip to content

Commit 55d9bfc

Browse files
committed
Use attr instead of @
1 parent 9d8f7f1 commit 55d9bfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/expect-inheritance.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ expect_s7_class <- function(object, class) {
113113
"%s inherits from %s not <%s>.",
114114
act$lab,
115115
paste0("<", setdiff(base::class(object), "S7_object"), ">", collapse = "/"),
116-
class@name
116+
attr(class, "name")
117117
)
118118
)
119119
}

0 commit comments

Comments
 (0)