Learn R Programming

ooplah

What is ooplah?

ooplah contains helper functions for object-oriented programming in R, with a focus on R6. These functions are used throughout the xoop universe but can be useful in any package.

Installation

For the latest release on CRAN, install with

install.packages("ooplah")

Otherwise for the latest stable build

remotes::install_github("xoopR/ooplah")

Future Plans

The ooplah API is still experimental and may be subject to major changes. Currently it’s primary use-case is in other xoopR packages, minor or major changes will be made to satisfy this dependency. Future development will then focus on code quality and speed.

Package Development and Contributing

ooplah is released under the MIT licence. We welcome and appreciate all new issues relating to bug reports, questions and suggestions. You can also start a discussion for more extensive feedback or feature suggestion.

Copy Link

Version

Install

install.packages('ooplah')

Monthly Downloads

851

Version

0.2.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Raphael Sonabend

Last Published

January 21st, 2022

Functions in ooplah (0.2.0)

object_class

Get class of an object (possibly with inheritance)
is.R6Class

Is 'x' a R6 class?
is.R6

Is 'x' a R6 object or class?
private

Get R6 object private environment
is.R6Object

Is 'x' a R6 object?
ooplah

R6 Class for testing and examples
AbstractClass

Create an abstract R6 Class
loapply

Specialised lapply for objects
decorate

Sugar function for decoration
DecoratorClass

Create an abstract R6 Class
vxapply

Specialised vapply methods for atomic classes
super

Get R6 object parent environment