This function monitors the total and peak RAM used by any number of R expressions or functions.
R expressions or function calls. Anonymous functions
When working with big datasets, 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 (e.g., with
duplicates that matrix in the backend, making this task
require twice as much RAM as that used by the matrix itself.
peakRAM package makes it easy to monitor the total
and peak RAM used so that developers can quickly identify and
eliminate RAM hungry code.
data.frame tallying total and peak RAM use.
1 2 3 4
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.