Skip to contents

Key functions

new_class() new_object()
Define a new S7 class
new_generic() S7_dispatch()
Define a new generic
new_union()
Define a class union
`method<-`()
Register a S7 method for a generic
S7_inherits() check_is_S7()
Does this object inherit from an S7 class?
validate() valid_eventually() valid_implicitly()
Validate an S7 object

Properties

new_property()
Define a new property
prop() `prop<-`() `@`()
Get/set a property
prop_names() prop_exists()
Property introspection
props() `props<-`() set_props()
Get/set multiple properties
S7_data() `S7_data<-`()
Get/set underlying "base" data

Method dispatch

convert()
Convert an object from one type to another
super()
Force method dispatch to use a superclass
as_class()
Standard class specifications
method()
Retrieve a method for an S7 generic
method_explain()
Explain method dispatch
new_external_generic() external_methods_register()
Generics in other packages
new_S3_class()
Declare an S3 class
S4_register()
Register an S7 class with S4
S7_class()
Retrieve the S7 class of an object
class_logical class_integer class_double class_complex class_character class_raw class_list class_expression class_function class_environment class_numeric class_atomic class_vector class_factor class_Date class_POSIXct class_data.frame
Base classes
class_missing class_any
Special dispatch types