Skip to content

Classes and Methods for Fast Memory-Efficient Boolean Selections

8packages dependsuggested by 3
9.1Mdownloads / year
72.1%test coverage
13/13flavors OK

Overview

About

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).

Changes in 4.6.0

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

CRAN checks
13OK
Slowest check: 6.4 min · r-oldrel-windows-x86_64
Status changes
  • 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
Advisories

none known

Documentation

In release 4.6.0
README· In the repository, left out of the releaseVignettesYes · 3 · dynamicNEWSYes · 33% structured · mentions 4.6.0Citation fileNoWebsitenot declared in DESCRIPTION
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

9.1M
CRAN downloads in the past year
Rank #94 · ~24.9K/day · ~756K/mo
Daily download trend is not available in this view yet.
692.5K30 days
2M90 days
9.1M1 year
Compare downloads with other packages →
Also on152.5K r2u173 autocran1.4M conda_forge784 bioconda5.1K c2d4u

Repository

r-lib/bit ↗Organization: r-lib
13Stars
1Forks
8Open issues
1Open PRs
1Releases
120Commits
4Commit identities
120 commits · Last activity 2025-05-06 · 0% stars, 30d · Default branch at 4.6.99, ahead of CRAN 4.6.0 (checked 2026-10-11)
Responsiveness
How these are sampled
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

2025-04-13 · 122026-07-07 · 13
PracticesBeta

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.

Continuous integration (2)
GitHub ActionsR CMD check workflow

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

Coverage (1)
Coverage reporting (Codecov)
Reproducibility and dev environment (1)
Dev Container
Lint, format, editor (2)
Lint workflowRStudio project
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
8 external dependencies (excludes base and recommended)

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

Depends (1)
R >= 3.4.0
Imports (0)
none
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
8direct
2,079indirect
Depends 2 · Imports 6
Suggested by 3
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

People & History

People (3)
Author, Maintainer since 4.6.0 (2025) · added in 4.6.0
Author · added in 1.1-13
Contributor · added in 1.1-15

Previously maintained by Jens Oehlschlägel (1.1-1 to 4.5.0.1).

Listed in earlier versions (1)
Jens Oehlschl\xE4gel
no longer listed · 1.1-1 to 1.1-8
Releases (26)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • 4.6.0Latest
    record
    2025-03-06 · current release · diff ↗
  • 4.5.0.1
    record
    2024-12-03 · diff ↗
  • 4.5.0
    record
    2024-09-20 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • 4.0.5
    record
    2022-11-15 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • 4.0.4
    record
    2020-08-04 · diff ↗ ·
    removed 2 exports
    copy, reverse
    added 2 exports
    copy_vector, reverse_vector
  • unarchivedReturned to CRAN
    2020-07-30
  • 4.0.3
    record
    2020-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 more
    added 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
  • R
    R 4.0.0 released · 2020-04-24
  • 1.1-15.2
    record
    2020-02-10 · diff ↗
  • 1.1-15.1
    record
    2020-01-14 · diff ↗
Show 35 earlier eventsHide 35 earlier events
  • orphanedOrphaned by its maintainer
    2020-01-13
    check errors were not corrected
  • 1.1-15
    record
    2020-01-13 · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • 1.1-14
    record
    2018-05-29 · diff ↗
  • 1.1-13
    record
    2018-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
  • R
    R 3.5.0 released · 2018-04-23
  • R
    R 3.4.0 released · 2017-04-21
  • R
    R 3.3.0 released · 2016-05-03
  • R
    R 3.2.0 released · 2015-04-16
  • R
    R 3.1.0 released · 2014-04-10
  • 1.1-12
    record
    2014-04-09 · diff ↗
  • 1.1-11
    record
    2013-12-05 · diff ↗
  • R
    R 3.0.0 released · 2013-04-03
  • 1.1-10
    record
    2013-03-11 · diff ↗
  • 1.1-9
    record
    2012-10-24 · diff ↗
  • R
    R 2.15.0 released · 2012-03-30
  • 1.1-8
    record
    2012-01-15 · diff ↗
  • R
    R 2.14.0 released · 2011-10-31
  • 1.1-7
    record
    2011-04-24 · diff ↗
  • R
    R 2.13.0 released · 2011-04-13
  • R
    R 2.12.0 released · 2010-10-15
  • 1.1-6
    record
    2010-09-27 · diff ↗
  • R
    R 2.11.0 released · 2010-04-22
  • 1.1-4
    record
    2010-03-23 · diff ↗
  • 1.1-3
    record
    2010-01-20 · diff ↗
  • 1.1-2
    record
    2009-10-26 · diff ↗
  • R
    R 2.10.0 released · 2009-10-26
  • 1.1-1
    record
    2009-10-11 · diff ↗
  • 1.1.0
    record
    2009-07-24 · diff ↗
  • R
    R 2.9.0 released · 2009-04-17
  • 1.0-2
    record
    2009-04-15 · diff ↗
  • 1.0-1
    record
    2009-02-15 · diff ↗
  • R
    R 2.8.0 released · 2008-10-20
  • 1.0
    record
    2008-10-09
  • R
    R 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")
Chirico, M., Oehlschlägel, J., & Ripley, B. (2025). bit: Classes and Methods for Fast Memory-Efficient Boolean Selections (Version 4.6.0) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for bit version 4.6.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