Skip to content

listenv

1.1.0Package record

Environments Behaving (Almost) as Lists

7packages dependsuggested by 5
3.6Mdownloads / year
99.3%test coverage
13/13flavors OK

Overview

About

List environments are environments that have list-like properties. For instance, the elements of a list environment are ordered and can be accessed and iterated over using index subsetting, e.g. 'x <- listenv(a = 1, b = 2); for (i in seq_along(x)) x[[i]] <- x[[i]] ^ 2; y <- as.list(x)'.

Changes in 1.1.0

Significant Changes

  • parse_env_subset() on x[NULL] and x[1, NULL] now selects zero elements - it used to select all elements.
  • parse_env_subset() on x[[]], x[[NULL]], x[[integer(0)]] now gives an error as R does for lists - it used to select all elements.

Bug Fixes

  • Growing a list environment with dimensions, e.g. length(x) <- n, x[[n]] <- value, x[n] <- value, and x$name <- value, where n > length(x) or name is a new element, did not drop the dimensions, as done for lists, which left x in an invalid state.
  • x[[i, j]] on a list environment with dimensions gave an obscure error when the subscripts referred to more than one element.
Show all changes in 1.1.0Hide the rest of the changes in 1.1.0
  • x[[name]] where length(name) != 1 gave an obscure error.
  • x[[NA]], x[[NA_integer_]] and x[[NA_real_]] gave an obscure error instead of returning NULL, as done for lists.
  • x[i] <- value gave an error if i contained zeros, e.g. x[c(0, 2)] <- value and x[0] <- NULL, instead of ignoring them, as done for lists.
  • x[i] <- value gave an error if i contained negative indices, e.g. x[-1] <- value and x[-1] <- NULL, instead of assigning or removing all other elements, as done for lists.
  • x[i] did not handle missing values in i as done for lists. For numeric indices, e.g. x[c(1, NA)], it gave an obscure error, and for logical indices, e.g. x[NA] and x[c(TRUE, NA), ], it silently dropped such elements, instead of returning NULL for them. Similarly, x[i] <- value did not ignore missing indices when value is of length one, and did not give an error when it is longer.
  • Subsetting a list environment did not truncate fractional indices toward zero, as done for lists and arrays. For example, x[-1.5] returned all elements instead of behaving as x[-1], which drops the first element. Similarly, x[1.5, 2.9] behaved as x[1, 3] instead of x[1, 2].
  • parse_env_subset() on x[[i, j]] with dimensions did not give an error for zero indices, e.g. x[[1, 0]], but returned an empty target, although it gave an error for x[[0]].
  • parse_env_subset() on x[[i, j]] with named dimensions returned elements idx and exists with dimnames that should not be there.
  • parse_env_subset() on x[[i, j]] with more or fewer dimensions than subscripts would either give an obscure error or, silently, an incorrect index.
  • parse_env_subset() did not truncate fractional indices, as done for lists and arrays. For example, x[[1.5]] gave idx = 1.5 instead of 1, and x[[0.5]] gave an obscure error instead of an error on a zero index.
  • parse_env_subset() would treat x[i] as x["i"], and similarly for more dimensions, e.g. parse_env_subset(x[i, j]).
  • parse_env_subset() on x[names] gave an obscure error when length(names) > 1 and some names did not exist.
  • parse_env_subset() on x$name and x[["name"]] would report exists = TRUE even if name did not exist in x but in one of the parent environments.
  • parse_env_subset() treated a NULL subset as an empty one, e.g. x[NULL] and x[1, NULL] selected all elements instead of none. Also, x[[]], x[[NULL]], and x[[integer(0)]], and similarly for more dimensions, e.g. x[[1, ]], did not give an error, as done for lists and arrays.
  • parse_env_subset("1a", envir = x) gave an error on 'Not a valid variable name', although any name is a valid variable name, e.g. x <- listenv("1a" = 1).

From NEWS.md in the release

Install

Health

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

none known

Documentation

In release 1.1.0
READMEYes · 938 wordsVignettesYes · 1 · dynamicNEWSYes · 100% structured · mentions 1.1.0Citation fileNoWebsiteYes · pkgdown
Help pages
12 (9 internal)
Examples that run
100%3 run in a plain check
Exported functions with examples
33%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
0%

Downloads

3.6M
CRAN downloads in the past year
Rank #201 · ~9.8K/day · ~299.4K/mo
Daily download trend is not available in this view yet.
282.3K30 days
822.5K90 days
3.6M1 year
Compare downloads with other packages →
Also on108.9K r2u134 autocran476K conda_forge81.8K bioconda18.3K c2d4u

Repository

31Stars
2Forks
6Open issues
0Open PRs
0Releases
446Commits
1Commit identities
rpackage
License file reads as Apache-2.0 · 446 commits · Last activity 2026-10-04 · 0% stars, 30d · Default branch at 1.1.0-9000, ahead of CRAN 1.1.0 (checked 2026-10-11)
Responsiveness
How these are sampled
PRs merged (all time)
0%
Median days to close, 50 most recently updated closed issues
1
Median days to close, 50 most recently updated closed PRs
308

Stars over time

2025-01-30 · 312026-07-07 · 31
PracticesBeta

10 development-tooling and community-health practices detected across 7 families in the upstream repository

Checks run against github.com/futureverse/listenv on 2026-10-11.

Continuous integration (2)
GitHub ActionsR CMD check workflow

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

Governance and community (2)
Code of conduct (inherited from futureverse)Contributing guide (inherited from futureverse)
Docs source (2)
pkgdown

GitHub Pages site last deployed 2026-10-04

pkgdown site last built 2026-10-04

Coverage (1)
Coverage reporting
Show all practicesHide 3 practices
Reproducibility and dev environment (1)
Makefile
CRAN release process (1)
revdep/
Research and citation (1)
CITATION.cff
How this is detected·Detection ruleset v3 (2026-09-26)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • Claude Codefirst seen 2026-09-23
    Commits: at least 1 crediting it in the message
Models named in its commits
  • Claude Opus 5.51 commit · Sep 2026
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
3 external dependencies (excludes base and recommended)

Installing listenv adds no packages beyond those that come with R.

Depends (1)
R >= 3.1.2
Imports (0)
none
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
7direct
1,299indirect
Depends 1 · Imports 6
Suggested by 5
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

People & History

People (1)
Author, Maintainer since 0.3.0 (2015), Copyright holder
Releases (12)

Pick two releases to compare their code metrics.

  • 1.1.0Latest
    record
    2026-06-22 · current release · diff ↗
  • 1.0.0
    record
    2026-06-22 · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 0.10.1
    record
    2026-03-10 · diff ↗
  • 0.10.0
    record
    2025-11-02 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 0.9.1
    record
    2024-01-29 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 0.9.0
    record
    2022-12-16 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • R
    R 4.0.0 released · 2020-04-24
  • 0.8.0
    record
    2019-12-05 · diff ↗ ·
    removed 1 export
    lengths.listenv
  • R
    R 3.6.0 released · 2019-04-26
  • R
    R 3.5.0 released · 2018-04-23
Show 8 earlier eventsHide 8 earlier events
  • 0.7.0
    record
    2018-01-21 · diff ↗ ·
    added 3 exports
    dim_na<-, lengths.listenv, mapping
  • R
    R 3.4.0 released · 2017-04-21
  • R
    R 3.3.0 released · 2016-05-03
  • 0.6.0
    record
    2015-12-28 · diff ↗ ·
    added 1 export
    undim
  • 0.5.0
    record
    2015-10-31 · diff ↗ ·
    removed 1 export
    map<-
  • 0.4.0
    record
    2015-08-08 · diff ↗ ·
    added 1 export
    as.listenv
  • 0.3.0
    record
    2015-05-28
  • R
    R 3.2.0 released · 2015-04-16

Package metadata

First published
2015-05-28
Total releases
12 / 11 yrs
License
Apache License (>= 2) · relicensed from LGPL (>= 2.1) in 1.0.0
Minimum R
≥ 3.1.2
Download size
55 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("listenv")
Bengtsson, H. (2026). listenv: Environments Behaving (Almost) as Lists (Version 1.1.0) [Computer software]. https://doi.org/10.32614/CRAN.package.listenv

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

The repository also keeps a CITATION.cff.

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

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