Skip to content

container

1.1.0Package record

Extending Base 'R' Lists

0packages depend
4.3Kdownloads / year
90.8%test coverage
13/13flavors OK

Overview

About

Extends the functionality of base 'R' lists and provides specialized data structures 'deque', 'set', 'dict', and 'dict.table', the latter to extend the 'data.table' package.

Changes in 1.1.0

New features

  • Extraction ([.Container):
  • Non-standard evaluation (NSE) for ranges and mixed endpoints, e.g. x[a:b], x[1:c], x[d:2], and negative ranges like x[-(a:c)].
  • Multiple indices as separate arguments and list(...) sugar: x[1, "a", 3:5], x[list(1, "a")].
  • Logical indexing improvements with safe recycling and informative warnings when the mask length doesn’t divide the container length; NA treated as FALSE with a warning.
  • .default argument supported to fill unknown/out-of-bounds positive indices and unknown names while preserving order and duplicates.
  • x[[TRUE]] now aligns with base R to return the first element.
  • Replacement ([<-.Container):
Show all changes in 1.1.0Hide the rest of the changes in 1.1.0
  • Supports the same extended indexing options as extraction, including NSE ranges, mixed indices, logical masks, and negative (complement) selection.
  • x[] <- v targets all positions; zero-length selections perform no replacement.
  • Adds unknown names when replacing via character indices; numeric indices must be in-bounds.
  • Replacement length is recycled with a warning when not a multiple of the target length.
  • Operators & utilities:
  • Generic %in% operator added (#36).
  • Option for shallow copy when converting container to list.

Fixes

  • Allow setting names for initially unnamed containers.

Internal / documentation

  • Refactored extract indexing into internal helper .get_pos_indices and reused it for replace to ensure consistent semantics.
  • Reworked and expanded tests; migrated legacy tests to testthat; improved docs and vignettes (interactive usage and replacement examples).
  • Renamed vignettes for CRAN ordering (#33); updated README and vignettes (#30).
  • Added News menu (this Changelog) to the package site and links to other packages via R universe.
  • Clarified OpsReplace documentation (indexing options, NULL assignment, NSE alphanumeric ranges).

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 3.8 min · r-oldrel-macos-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 1.1.0
README· In the repository, left out of the releaseVignettesYes · 6 · dynamicNEWSYes · 100% structured · mentions 1.1.0Citation fileNoWebsiteYes · pkgdown
Help pages
46
Examples that run
100%43 run in a plain check
Exported functions with examples
95%
Documented parameters
100%
Return-value docs
69%
Help pages citing references
0%

Downloads

4.3K
CRAN downloads in the past year
Rank #10,067 · ~12/day · ~361/mo
Daily download trend is not available in this view yet.
36830 days
1K90 days
4.3K1 year
Compare downloads with other packages →
Also on110 r2u10 autocran88 c2d4u

Repository

17Stars
3Forks
0Open issues
0Open PRs
3Releases
570Commits
6Commit identities
containerdata-structuresdequedictsets
570 commits · Last activity 2026-03-29 · 0% stars, 30d · Default branch at 1.1.0.9003, ahead of CRAN 1.1.0 (checked 2026-10-21)
Responsiveness
How these are sampled
PRs merged (all time)
93%
Median days to close, 50 most recently updated closed issues
21
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2025-04-17 · 162026-07-07 · 17
PracticesBeta

9 development-tooling and community-health practices detected across 5 families in the upstream repository

Checks run against github.com/rpahl/container on 2026-10-21.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows

Docs source (3)
README.Rmdpkgdown

GitHub Pages site last deployed 2026-03-29

Coverage (1)
Coverage reporting
Reproducibility and dev environment (1)
renv
Show all practicesHide 1 practice
Lint, format, editor (2)
lintrLint workflow
How this is detected·Detection ruleset v4 (2026-10-20)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • GitHub Copilotfirst seen 2025-09-19
    Seen in the repository: .github/copilot-instructions.md, .github/workflows/copilot-setup-steps.yml
    Pull request: opened by its own account
    Commits: 6 by its own account
Review tools
  • Copilot code review
    Commits: at least 3 accepting its review suggestions
Counts are commits, not lines of code. Commits by a tool's accounts count once across all of its accounts. Commits crediting it are the largest count among its credit lines, a minimum.How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
9 external dependencies (excludes base and recommended)

Installing container adds 2 packages (1 with compiled code, 5.8 MB of source tarballs). Heaviest: data.table 5.7 MB, R6 63 KB.

Depends (1)
R >= 3.5.0
Imports (4)
data.tablemethodsR6utils
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

People & History

People (1)
Author, Maintainer since 0.2.1 (2018)
Releases (9)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 1.1.0Latest
    record
    2025-11-11 · current release · diff ↗ ·
    added 2 exports
    %in%, set
  • R
    R 4.5.0 released · 2025-04-11
  • 1.0.5
    record
    2024-12-02 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • 1.0.4
    record
    2022-12-11 · diff ↗
  • unarchivedReturned to CRAN
    2022-11-16
  • 1.0.3
    record
    2022-11-16 · diff ↗
  • archivedRemoved from CRAN
    2022-10-03
    check issues were not corrected despite reminders
  • 1.0.2
    record
    2022-07-20 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 1.0.1
    record
    2022-02-19 · diff ↗
  • 1.0.0
    record
    2021-11-06 · diff ↗ ·
    removed 15 exports
    getval, itbegin, itget, itget_next, ithas_next, itnext, itpos, pop, popitem, popleft, remove, reverse, set, setval, type
    added 49 exports
    OrderedSet, as.cont, as.dict.table, as.orderedset, at, at2, begin, clone, cont, container_options, delete, delete_at, dict.table, discard_at, getContainerOption, get_next, get_value, has_name, has_next, has_value, is.dict.table, is.iterable, is.orderedset, is_empty, next_iter, peek_at, peek_at2, pos, ref_add, ref_addleft and 19 more
  • R
    R 4.1.0 released · 2021-05-18
  • R
    R 4.0.0 released · 2020-04-24
Show 4 earlier eventsHide 4 earlier events
  • R
    R 3.6.0 released · 2019-04-26
  • 0.3.0
    record
    2018-12-01 · diff ↗ ·
    added 42 exports
    add, addleft, as.container, as.deque, as.dict, as.set, clear, container, count, deque, dict, discard, empty, getval, has, is.container, is.deque, is.dict, is.iterator, is.set, itbegin, iter, itget, itget_next, ithas_next, itnext, itpos, keys, peek, peekleft and 12 more
  • 0.2.1
    record
    2018-07-01
  • R
    R 3.5.0 released · 2018-04-23

Package metadata

First published
2018-07-01
Total releases
9 / 8 yrs
License
GPL-3 OSI
Minimum R
≥ 3.5.0
Download size
466 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("container")
Pahl, R. (2025). container: Extending Base 'R' Lists (Version 1.1.0) [Computer software]. https://doi.org/10.32614/CRAN.package.container

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

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 container version 1.1.0 [Data set]. HJJB, LLC. Data release v2026-10-25. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-25, 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