Classes and Methods for Fast Memory-Efficient Boolean Selections
Overview
Provided are classes for boolean and skewed boolean vectors, fast boolean methods, fast unique and non-unique integer sorting, fast set operations on sorted and unsorted sets of integers, and foundations for ff (range index, compression, chunked processing).
BUG FIXES
1. Corrected the function prototype for a C function, #36. Thanks @aitap for investigating and suggesting a fix.
1. chunk() works if {ff} is loaded but not attached, #3. Thanks @dschlaep for the report.
NOTES
1. After creating, developing, and maintaining {bit} for about 16 years, Jens Oehlschlägel has decided to step down as maintainer of the package. As with {bit64}, Michael Chirico will take over in this duty. Thank you Jens for creating such a wonderful & important part of the R ecosystem!
I don't have any major plans for new features, and mostly hope to keep the package running and up to date. Contributors most welcome! I am also trying to freshen up the code base to make contribution easier.
From NEWS.md in the release
Install
Health
- OK13 OK2026-09-25
- ERROR12 OK, 1 ERROR2026-09-18
- OK13 OK2026-09-01
- ERROR12 OK, 1 ERROR2026-08-25
- OK13 OK2026-08-05
Show 2 earlier changesHide 2 earlier changes
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- Help pages
- 65includes a package overview page
- Examples that run
- 100%61 run in a plain check
- Exported functions with examples
- 96%
- Documented parameters
- 100%
- Return-value docs
- 96%
- Help pages citing references
- 2%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- 136
- 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
6 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/r-lib/bit on 2026-10-11.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
Dependencies
Installing bit adds no packages beyond those that come with R.
Code & Tests
People & History
Previously maintained by Jens Oehlschlägel (1.1-1 to 4.5.0.1).
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- 4.6.0Latest
- 4.5.0.12024-12-03 · diff ↗
- 4.5.02024-09-20 · diff ↗
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- 4.0.52022-11-15 · diff ↗
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- 4.0.4
- unarchivedReturned to CRAN2020-07-30
- 4.0.32020-07-30 · diff ↗ ·
removed 90 exports
clone.default, clone.list, !.bit, !.bitwhich, !=.bit, !=.bitwhich, &.bit, &.bitwhich, [.bit, [[.bit, [[<-.bit, [<-.bit, |.bit, |.bitwhich, ==.bit, ==.bitwhich, all.bit, all.bitwhich, all.ri, any.bit, any.bitwhich, any.ri, as.bit.bit, as.bit.bitwhich, as.bit.double, as.bit.integer, as.bit.logical, as.bit.ri, as.bit.which, as.bitwhich.bit and 60 moreadded 76 exports
!=.booltype, &.booltype, ==.booltype, |.booltype, .BITS, all.booltype, any.booltype, anyNA.booltype, as.booltype, as.ri, bit_anyDuplicated, bit_duplicated, bit_in, bit_intersect, bit_rangediff, bit_setdiff, bit_setequal, bit_sort, bit_sort_unique, bit_sumDuplicated, bit_symdiff, bit_union, bit_unique, bitsort, bitwhich_representation, booltype, booltypes, c.booltype, chunks, copy and 46 more - RR 4.0.0 released · 2020-04-24
- 1.1-15.22020-02-10 · diff ↗
- 1.1-15.12020-01-14 · diff ↗
Show 35 earlier eventsHide 35 earlier events
- orphanedOrphaned by its maintainer2020-01-13check errors were not corrected
- 1.1-152020-01-13 · diff ↗
- RR 3.6.0 released · 2019-04-26
- 1.1-142018-05-29 · diff ↗
- 1.1-132018-05-15 · diff ↗ ·
added 149 exports
setattr, setattributes, unattr, clone.default, clone.list, still.identical, as.bit, as.bitwhich, as.which, xor, physical, virtual, clone, ramsort, shellsort, quicksort, mergesort, radixsort, keysort, ramorder, shellorder, quickorder, mergeorder, radixorder, keyorder, ramsortorder, shellsortorder, quicksortorder, mergesortorder, radixsortorder and 119 more - RR 3.5.0 released · 2018-04-23
- RR 3.4.0 released · 2017-04-21
- RR 3.3.0 released · 2016-05-03
- RR 3.2.0 released · 2015-04-16
- RR 3.1.0 released · 2014-04-10
- 1.1-122014-04-09 · diff ↗
- 1.1-112013-12-05 · diff ↗
- RR 3.0.0 released · 2013-04-03
- 1.1-102013-03-11 · diff ↗
- 1.1-92012-10-24 · diff ↗
- RR 2.15.0 released · 2012-03-30
- 1.1-82012-01-15 · diff ↗
- RR 2.14.0 released · 2011-10-31
- 1.1-72011-04-24 · diff ↗
- RR 2.13.0 released · 2011-04-13
- RR 2.12.0 released · 2010-10-15
- 1.1-62010-09-27 · diff ↗
- RR 2.11.0 released · 2010-04-22
- 1.1-42010-03-23 · diff ↗
- 1.1-32010-01-20 · diff ↗
- 1.1-22009-10-26 · diff ↗
- RR 2.10.0 released · 2009-10-26
- 1.1-12009-10-11 · diff ↗
- 1.1.02009-07-24 · diff ↗
- RR 2.9.0 released · 2009-04-17
- 1.0-22009-04-15 · diff ↗
- 1.0-12009-02-15 · diff ↗
- RR 2.8.0 released · 2008-10-20
- 1.02008-10-09
- RR 2.7.0 released · 2008-04-22
Package metadata
- First published
- 2008-10-09
- Total releases
- 26 / 18 yrs
- License
- GPL-2 | GPL-3 OSI
- Minimum R
- ≥ 3.4.0
- Download size
- 297 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("bit")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-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.