tests/testthat/_snaps/base.md

validation uses typeof

Code
  class_integer$validator(TRUE)
Output
  [1] "Underlying data must be <integer> not <logical>"

base class display as expected

Code
  class_integer
Output
  <S7_base_class>: <integer>
Code
  str(class_integer)
Output
  <S7_base_class>: <integer>


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.