Skip to content

R6

2.6.1

Encapsulated Classes with Reference Semantics

711packages depend
20.9Mdownloads / year
test coverage
12/13checks pass

Overview

About
Maintained by Winston ChangFirst published 2014-07-1717 releasesCRAN page ↗GitHub ↗

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

CRAN checks
1ERROR12OK
Failing flavors
  • ERROR r-oldrel-macos-arm64
Slowest check: 1.2 min · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 2.22
not tracked
Coverage
100%
Documentation · exports
0
Dependencies · direct
Check history
  • ERROR2026-03-10
    13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 272 wordsVignettesNopkgdown siteNoNEWSYes · 33% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
100%
Return-value docs
50%
References docs
0%

Downloads

20.9M
CRAN downloads in the past year
Rank #8 · ~57.1K/day · ~1.7M/mo
Daily download trend is not available in this view yet.
2.1M30 days
5.7M90 days
20.9M1 year
Compare downloads with other packages →
Also on197.9K r2u108 autocran1.9M conda_forge3.8K c2d4u

Repository

Repository
425Stars
58Forks
53Open issues
3Open PRs
4Releases
601Commits
20Contributors
r
601 commits · Last activity 2025-10-20 · +0.2% stars, 30d

Stars over time

2025-07-14 · 4212026-07-19 · 425

Repository practices

Upstream repositoryBeta

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.

Continuous integration (1)
GitHub Actions
Lint, format, editor (1)
RStudio project
Coverage (1)
Codecov
Governance and community (1)
CODEOWNERS
Show all practices
Git structural (1)
.gitattributes
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
2 external dependencies (excludes base and recommended)
Depends (1)
R >= 3.6
Imports (0)
none
LinkingTo (0)
none
Suggests (2)
Enhances (0)
none

Code & Tests

People & History

People (2)
Maintainer (1)
Author, Maintainer
Authors (1)
Author, Maintainer
Copyright holders (1)
Copyright holder, Funder · added in 2.6.0
Funders (1)
Copyright holder, Funder · added in 2.6.0
Package Timeline

17 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • 2.6.1Latest
    2025-02-15 · current release · diff ↗
  • 2.6.0
    2025-02-12 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • 2.5.1
    2021-08-19 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 2.5.0
    2020-10-28 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 2.4.1
    2019-11-12 · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • 2.4.0
    2019-02-14 · diff ↗
  • 2.3.0
    2018-10-04 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
Show 14 earlier events
  • 2.2.2
    2017-06-17 · diff ↗
  • 2.2.1
    2017-05-10 · diff ↗
  • R
    R 3.4.0 released · 2017-04-21
  • 2.2.0
    2016-10-05 · diff ↗
  • 2.1.3
    2016-08-19 · diff ↗
  • R
    R 3.3.0 released · 2016-05-03
  • 2.1.2
    2016-01-26 · diff ↗
  • 2.1.1
    2015-08-19 · diff ↗
  • 2.1.0
    2015-07-04 · diff ↗
  • R
    R 3.2.0 released · 2015-04-16
  • 2.0.1
    2014-10-29 · diff ↗
  • 2.0
    2014-08-19 · diff ↗
  • 1.0.1
    2014-07-17
  • R
    R 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
Appears in task views

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("R6")
Chang, W., & Posit Software, PBC. (2025). R6: Encapsulated Classes with Reference Semantics (Version 2.6.1) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for R6 version 2.6.1 [Data set]. HJJB, LLC. Data release v2026-08-15. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy