R6
2.6.1Encapsulated Classes with Reference Semantics
Overview
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.
Install
Health
- ERROR r-oldrel-macos-arm64
- ERROR2026-03-1013 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
Documentation
- Examples that run
- 100%
- Documented parameters
- 100%
- Return-value docs
- 50%
- References docs
- 0%
Downloads
Repository
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Repository practices
5 development-tooling and community-health practices detected across 5 families in the upstream repository
Checks run against github.com/r-lib/r6 on 2026-08-09.
Show all practices
Dependencies
and 663 more packages.
Code & Tests
People & History
17 releases. Pick two to compare their code metrics. R releases are shown for context.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- 2.6.1Latest
- 2.6.02025-02-12 · diff ↗
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- 2.5.12021-08-19 · diff ↗
- RR 4.1.0 released · 2021-05-18
- 2.5.02020-10-28 · diff ↗
- RR 4.0.0 released · 2020-04-24
- 2.4.12019-11-12 · diff ↗
- RR 3.6.0 released · 2019-04-26
- 2.4.02019-02-14 · diff ↗
- 2.3.02018-10-04 · diff ↗
- RR 3.5.0 released · 2018-04-23
Show 14 earlier events
- 2.2.22017-06-17 · diff ↗
- 2.2.12017-05-10 · diff ↗
- RR 3.4.0 released · 2017-04-21
- 2.2.02016-10-05 · diff ↗
- 2.1.32016-08-19 · diff ↗
- RR 3.3.0 released · 2016-05-03
- 2.1.22016-01-26 · diff ↗
- 2.1.12015-08-19 · diff ↗
- 2.1.02015-07-04 · diff ↗
- RR 3.2.0 released · 2015-04-16
- 2.0.12014-10-29 · diff ↗
- 2.02014-08-19 · diff ↗
- 1.0.12014-07-17
- RR 3.1.0 released · 2014-04-10
Package metadata
- First published
- 2014-07-17
- Total releases
- 17 / 12 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 3.6
- Download size
- 63 KB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("R6")This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-08-15, which the citation names so these numbers can be found later. More on citing and the projects behind them.