Skip to content

cachem

1.1.0

Cache R Objects with Automatic Pruning

41packages depend
12.6Mdownloads / year
74.0%test coverage
13/13checks pass

Overview

About
Maintained by Winston ChangFirst published 2021-01-1810 releasesCRAN page ↗GitHub ↗

Key-value stores with automatic pruning. Caches can limit either their total size or the age of the oldest object (or both), automatically pruning objects to maintain the constraints.

Install

Health

CRAN checks
13OK
Slowest check: 1.1 min · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 0.39
74.0%
Coverage · measured lines
100%
Documentation · exports
2
Dependencies · direct
Check history
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 1,942 wordsVignettesNopkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
100%
Return-value docs
75%
References docs
0%

Downloads

12.6M
CRAN downloads in the past year
Rank #56 · ~34.6K/day · ~1.1M/mo
Daily download trend is not available in this view yet.
1M30 days
3.2M90 days
12.6M1 year
Compare downloads with other packages →
Also on148.1K r2u11 autocran1.1M conda_forge4K c2d4u

Repository

Repository
65Stars
16Forks
11Open issues
4Open PRs
10Releases
170Commits
10Contributors
170 commits · Last activity 2025-10-20 · 0% stars, 30d

Stars over time

2024-11-05 · 582026-07-07 · 65

Repository practices

Upstream repositoryBeta

6 development-tooling and community-health practices detected across 5 families in the upstream repository

Checks run against github.com/r-lib/cachem on 2026-07-19.

Continuous integration (1)
GitHub Actions
Reproducibility and dev environment (1)
Makefile
CRAN release process (2)
cran-comments.mdrevdep/
Docs source (1)
README.Rmd
Show all practices
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
3 external dependencies (excludes base and recommended)
Depends (0)
none
Imports (2)
LinkingTo (0)
none
Suggests (1)
Enhances (0)
none

Code & Tests

Code Composition
R 1,994 (80%)Rd 446 (18%)C 41 (2%)
Code characteristics
Object systems
S32
Cyclomatic complexity
2.0 median / 48 max
Test cases
23 / 0.39 per code line

Test coverage

Line coverage

74%

Expression

74.0%

Tests / Examples

74.0% / 36% ex

Functions

13 3 exported

Complexity

9.5 avg / 48 max

Call network

13 nodes / 6 edges

Loading call graph…

Lowest coverage

13 functions
FunctionCycloCoverage
cache_layered exp100%
absolute_path20%
dir_remove50%
format.cachem10%
format_args20%
format_methods20%

People & History

People (2)
Maintainer (1)
Author, Maintainer
Authors (1)
Author, Maintainer
Copyright holders (1)
Copyright holder, Funder · added in 1.1.0
Funders (1)
Copyright holder, Funder · added in 1.1.0
Listed in earlier versions (1)
no longer listed · 1.0.0 to 1.0.8
Package Timeline

10 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • 1.1.0Latest
    2024-05-16 · current release · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 1.0.8
    2023-05-01 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 1.0.7
    2023-02-24 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 1.0.6
    2021-08-19 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 1.0.5
    2021-05-15 · diff ↗
  • 1.0.4
    2021-02-13 · diff ↗
  • 1.0.3
    2021-02-04 · diff ↗
  • 1.0.2
    2021-02-03 · diff ↗
  • 1.0.1
    2021-01-21 · diff ↗
  • 1.0.0
    2021-01-18
Show 1 earlier events
  • R
    R 4.0.0 released · 2020-04-24

Package metadata

First published
2021-01-18
Total releases
10 / 5 yrs
License
MIT + file LICENSE OSI
Download size
27 KB
Installed size
not tracked yet
With dependencies
not tracked yet
Report a problem with this page →