Provides simple start/stop memory tracking functions tic_mem() and toc_mem() that can be nested, inspired by the 'tictoc' package. Track RAM usage during code execution with support for logging, custom messages, nested tracking blocks, and parallel worker monitoring. Features continuous background polling to estimate peak memory usage across main process and workers. Integrates with the 'future' package ecosystem for automatic worker detection. Designed for monitoring memory consumption in parallel workflows.
| Version: | 0.1.1 |
| Depends: | R (≥ 4.1.0) |
| Imports: | ps (≥ 1.7.0), cli (≥ 3.0.0), callr (≥ 3.7.0) |
| Suggests: | testthat (≥ 3.2.0), withr, future, parallelly, knitr, rmarkdown |
| Published: | 2026-09-26 |
| DOI: | 10.32614/CRAN.package.memtoc (may not be active yet) |
| Author: | Juan Ocampo |
| Maintainer: | Juan Ocampo <jocampo1997 at hotmail.com> |
| BugReports: | https://github.com/jcoa05/memtoc/issues |
| License: | MIT + file LICENSE |
| URL: | https://github.com/jcoa05/memtoc |
| NeedsCompilation: | no |
| Language: | en-US |
| Materials: | README, NEWS |
| CRAN checks: | memtoc results |
| Reference manual: | memtoc.html , memtoc.pdf |
| Vignettes: |
Getting Started with memtoc (source, R code) |
| Package source: | memtoc_0.1.1.tar.gz |
| Windows binaries: | r-devel: not available, r-release: not available, r-oldrel: not available |
| macOS binaries: | r-release (arm64): memtoc_0.1.1.tgz, r-oldrel (arm64): not available, r-release (x86_64): memtoc_0.1.1.tgz, r-oldrel (x86_64): memtoc_0.1.1.tgz |
Please use the canonical form https://CRAN.R-project.org/package=memtoc to link to this page.