Simple Memory Profiling for R
Overview
A simple and light-weight API for memory profiling of R expressions. The profiling is built on top of R's built-in memory profiler ('utils::Rprofmem()'), which records every memory allocation done by R (also native code).
New Features
profmem()gained argumenton_errorto control what should happen when there is a run-time error during profiling. Known actions are"error","warning", and"ignore"(default).print()for Rprofmem objects now report on any run-time errors that occurred while profiling the R expression.print()for Rprofmem objects gained logical argument `calls' to control whether calls ("traces") are outputted.
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
- 3 (1 internal)
- Examples that run
- 100%2 run in a plain check
- Exported functions with examples
- 67%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 33%
Downloads
Repository
- PRs merged (all time)
- not measured
- Median days to close, 50 most recently updated closed issues
- 0
- Median days to close, 50 most recently updated closed PRs
- not measured
Stars over time
Forks over time
Issues over time
8 development-tooling and community-health practices detected across 6 families in the upstream repository
Checks run against github.com/henrikbengtsson/profmem on 2026-10-11.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2025-05-02
Show all practicesHide 2 practices
Dependencies
Installing profmem adds no packages beyond those that come with R.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 0.7.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
- 0.6.02020-12-13 · diff ↗
- 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.5.02018-01-30 · diff ↗ ·
added 6 exports
profmem_begin, profmem_depth, profmem_end, profmem_resume, profmem_status, profmem_suspend - RR 3.4.0 released · 2017-04-21
- 0.4.02016-09-15
- RR 3.3.0 released · 2016-05-03
Package metadata
- First published
- 2016-09-15
- Total releases
- 4 / 10 yrs
- License
- LGPL (>= 2.1)
- Download size
- 19 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("profmem")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.