Skip to contents

Key functions

new_class() new_object()
Define a new R7 class
new_generic() R7_dispatch()
Define a new generic
new_union()
Define a class union
`method<-`()
Register a R7 method for a generic
R7_inherits() check_is_R7()
Does this object inherit from an R7 class?
validate() valid_eventually() valid_implicitly()
Validate an R7 object

Properties

new_property()
Define a new property
prop() `prop<-`() `@`()
Get/set a property
prop_names() prop_exists()
Property introspection
props() `props<-`()
Get/set multiple properties
R7_data() `R7_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 R7 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 R7 class with S4
R7_class()
Retrieve the R7 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