``` r library(S7) A = new_class("A", constructor = function() { new_object(A) } ) a = A() method(dim, A) <- function(x) { 1L } a #> <A> #> Error in attributes(object) <- list(names = names(object), dim = dim(object)): invalid first argument, must be vector (list or atomic) ``` <sup>Created on 2025-08-19 with [reprex v2.1.1](https://reprex.tidyverse.org)</sup>