This is a two part story:
- Part 1 goes over the subtleties of monitoring DRAM use by R applications (which seems impossible or very difficult to do from within R, except in a valgrind kind of way)
- Part 2 shows the Perl solution and how one can make it play nice from within R
Code is released under the MIT license - feel free to adapt to your use cases (and perhaps someone can provide a Windows version!)
submitted by /u/ReplacementSlight413
[link] [comments]