Skip to content

Commit

Permalink
Use attr instead of @
Browse files Browse the repository at this point in the history
  • Loading branch information
hadley committed Nov 6, 2024
1 parent 9d8f7f1 commit 55d9bfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/expect-inheritance.R
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ expect_s7_class <- function(object, class) {
"%s inherits from %s not <%s>.",
act$lab,
paste0("<", setdiff(base::class(object), "S7_object"), ">", collapse = "/"),
class@name
attr(class, "name")
)
)
}
Expand Down

0 comments on commit 55d9bfc

Please sign in to comment.