Skip to content

peakRAM

Monitor the Total and Peak RAM Used by an Expression or Function

v1.0.2 · Jan 16, 2017 · GPL-2

Description

When working with big data sets, RAM conservation is critically important. However, it is not always enough to just monitor the size of the objects created. So-called "copy-on-modify" behavior, characteristic of R, means that some expressions or functions may require an unexpectedly large amount of RAM overhead. For example, replacing a single value in a matrix duplicates that matrix in the back-end, making this task require twice as much RAM as that used by the matrix itself. This package makes it easy to monitor the total and peak RAM used so that developers can quickly identify and eliminate RAM hungry code.

Downloads

CRAN

473

Last 30 days

8743rd

1.3K

Last 90 days

6.9K

Last year

Trend: +6.8% (30d vs prior 30d)

r2u CRAN

2

Last 30 days

209

Last 90 days

284

Last year

Trend: -80% (30d vs prior 30d)

autoCRAN

1

Last 7 days

6

Last 30 days

1

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 12 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 25, 2026
NOTE 11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
NOTE r-oldrel-macos-arm64

LazyData

'LazyData' is specified without a 'data' directory
NOTE r-oldrel-macos-x86_64

LazyData

'LazyData' is specified without a 'data' directory
NOTE r-oldrel-windows-x86_64

LazyData

'LazyData' is specified without a 'data' directory

Code

Structure

Lines of code

163

Files

12

Compiled share

0%

Has compiled src

No

Language breakdown

R 77 (47.2%)Docs 38 (23.3%)Vignettes 48 (29.4%)

API

Exported functions

1

Internal functions

0

Recent export changes

v1.0.0+1 peakRAM

Testing & CI

Has tests

No

Test-to-code ratio

0.00

testthat edition

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

100%

\dontrun example ratio

0%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

Unsafe pattern score

0

Dep constraint coverage

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

3.2.2

System requirements

C++ standard

License

GPL-2

License flags

SPDX valid, OSI approved

History

Versions

3

First release

2016-07-29

Latest release

2017-01-15

Avg cadence

85 days

Cold removal rate

Dep drift

0

LOC over versions

v1.0.0: 163 LOCv1.0.1: 163 LOCv1.0.2: 163 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Reverse Dependencies (1)

Dependency Network

Dependencies Reverse dependencies SurprisalAnalysis peakRAM

Version History

4 tracked
new 1.0.2 Mar 10, 2026
updated 1.0.2 ← 1.0.1 diff Jan 15, 2017
updated 1.0.1 ← 1.0.0 diff Dec 3, 2016
new 1.0.0 Jul 28, 2016