Making "Deduplicated" Functions
Overview
Contains one main function deduped() which speeds up slow, vectorized functions by only performing computations on the unique values of the input and expanding the results at the end.
Features
deduped()andwith_deduped()gain a newverboseargument which adds informative deduplication messaging if TRUE, either by passing the argument or setting the new globaloptions(deduped.verbose = TRUE).deduped()now has early exits for inputs of length <= 1 or when no duplication is found.
Bug Fixes
deduped()now drops names iff()drops names, but keeps input names otherwise. Previously it always kept input names (#5).
Deletion of deduped_map()
deduped_map()has now been completely deleted and the "Suggests" dependence on purr has been removed. The function was deprecated with a warning in 0.2.0 and has no documented usage on github or cran.
Show all changes in 0.5.0Hide the rest of the changes in 0.5.0
Minor updates
- Added checks in
with_deduped()for malformed inputs (e.g. not a call tree, or a call with no first argument to deduplicate.)
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- Help pages
- 2
- Examples that run
- 100%2 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- 0
- Median days to close, 50 most recently updated closed PRs
- 1
Stars over time
Issues over time
PRs over time
8 development-tooling and community-health practices detected across 5 families in the upstream repository
Checks run against github.com/orgadish/deduped on 2026-10-22.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
Show all practicesHide 1 practice
Dependencies
Code & Tests
People & History
Package metadata
- First published
- 2023-10-25
- Total releases
- 5 / 3 yrs
- License
- MIT + file LICENSE OSI
- Download size
- 8.9 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("deduped")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-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.