R6: Encapsulated Classes with Reference Semantics

Creates classes with reference semantics, similar to R's built-in reference classes. Compared to reference classes, R6 classes are simpler and lighter-weight, and they are not built on S4 classes so they do not require the methods package. These classes allow public and private members, and they support inheritance, even when the classes are defined in different packages.

Getting started

Package details

AuthorWinston Chang [aut, cre]
MaintainerWinston Chang <winston@stdout.org>
LicenseMIT + file LICENSE
Version2.5.1
URL https://r6.r-lib.org https://github.com/r-lib/R6/
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("R6")

Try the R6 package in your browser

Any scripts or data that you put into this service are public.

R6 documentation built on Aug. 19, 2021, 5:05 p.m.