Multiple, Unpacking, and Destructuring Assignment
Overview
Provides a %<-% operator to perform multiple, unpacking, and destructuring assignment in R. The operator unpacks the right-hand side of an assignment into multiple values and assigns these values to variables on the left-hand side of the assignment.
Breaking changes
- The collector syntax has changed. The previous syntax
...was incompatible withR CMD checkand would raise the error "... may be used in an incorrect context". The new syntax..(double dots instead of triple) avoids this error. (#62) ```R
new
c(x, ..) %<-% list(1, 2, 3)
old
c(x, ...) %<-% list(1, 2, 3)
```
- The
destructuremethods for the Date, character, and complex classes have been removed.
Show all changes in 0.2.0Hide the rest of the changes in 0.2.0
New features
- Values may now be assigned by name. The new syntax allows assigning a value to a variable by name instead of position. (#47) ``
R c(disp=, gear=) %<-% mtcars`` - For package developers, the new function
zeallous()will preventR CMD checkfrom raising visible binding errors for variables assigned using%<-%. Call the function from a package's.onLoadfunction. (#57) ``R .onLoad <- function(libname, pkgname) { zeallous() }``
Major improvements
- Collector variables now default to an empty list instead of raising an error when there are no values to collect. (#56) ``
R c(x, ..y) %<-% list(1)`` - Trailing anonymous collectors and value skips no longer raise errors. ``
R c(x, ..) %<-% list(1) c(y, .) %<-% list(1)``
Minor improvements
- Error messages have been simplified.
- R versions >= 3.2 are formally supported.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-04
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- Help pages
- 4includes a package overview page
- Examples that run
- 100%3 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 0%
- Help pages citing references
- 0%
- Unpacking Assignment HTML
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- 32
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
Commit identities over time
8 development-tooling and community-health practices detected across 6 families in the upstream repository
Checks run against github.com/r-lib/zeallot on 2026-10-11.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
Show all practicesHide 2 practices
Dependencies
Installing zeallot adds no packages beyond those that come with R.
Show all 26 packagesHide all 26 packages
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 0.2.0Latest
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- RR 3.6.0 released · 2019-04-26
- RR 3.5.0 released · 2018-04-23
- 0.1.02018-01-28 · diff ↗
- 0.0.62017-09-28 · diff ↗
- 0.0.5
- 0.0.4
- RR 3.4.0 released · 2017-04-21
- 0.0.32017-02-27 · diff ↗
Show 2 earlier eventsHide 2 earlier events
- 0.0.22017-01-27
- RR 3.3.0 released · 2016-05-03
Package metadata
- First published
- 2017-01-27
- Total releases
- 7 / 9 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 3.2
- Download size
- 28 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("zeallot")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.
From data release v2026-10-17, which the citation names so these numbers can be found later. More on citing and the projects behind them.