tests/testthat/_snaps/super.md

super(): checks to

Code
  foo <- new_class("foo", package = NULL)
  super(foo(), class_character)
Condition
  Error in `super()`:
  ! <foo> doesn't inherit from <character>

super(): displays nicely

Code
  f1 <- super(foo2(), foo1)
  f1
Output
  super(<foo2>, <foo1>)
Code
  str(list(f1))
Output
  List of 1
   $ : super(<foo2>, <foo1>)


Try the S7 package in your browser

Any scripts or data that you put into this service are public.

S7 documentation built on April 3, 2025, 10:50 p.m.