mem_used2 | R Documentation |
This function is inspired by pryr::mem_used function.
mem_used2(maximum = FALSE)
maximum |
locical, whether to show the maximum memory that R used. Default is FALSE, which means the memory that R currently used. |
## Not run:
mem_use2()
mem_use2(TRUE)
x = matrix(1.2, nrow = 10000, ncol = 1000)
mem_used2()
mem_used2(TRUE)
# After removing x, current memory recover but the maximum memory does not.
rm(x)
mem_used2()
mem_used2(TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.