Learn R Programming

oops (version 0.2.0)

S3 Style Object Oriented Programming

Description

Create simple, hassle-free classes with reference semantics similar to 'RefClass' or 'R6' but relying on S3 methods. "oops" class instances tend to be lighter weight and faster to create. Creating a class is as easy creating a list, while generating an instance is a simple function call. Support for inheritance and fixed field classes.

Copy Link

Version

Install

install.packages('oops')

Monthly Downloads

41

Version

0.2.0

License

MIT + file LICENSE

Maintainer

Chris Mann

Last Published

March 2nd, 2022

Functions in oops (0.2.0)

init.Instance

Init Method for Instance
as.oClass

Convert Object to an oClass Generator
change_formals

Change the Formal Arguments of a oClass Generator
change_inherit

Change the Inheritance of an oClass
clone

Create a Copy of an oClass Instance
init

Initialize Class Instance
is.Instance

Is Object a Class Instance?
is.oClass

Is Object an "oClass" Generator?
oClass

Create an Object Class
Extract

Extract or Replace Parts of a Class or Instance
add_fields

Add Fields to oClasses and Other Objects
cpi_data

Price Inflation Data