I would like to check what is the top usage of memory during running a code in R. Does anyone know such a function?
The only thing I found, so far, is the function mem_change from pryr package, which checks memory change before and after running a code.
I work on Linux.
RproforRprofmem. If you are looking for real time memory use, I don't think there is anything in R.memory.size(max=TRUE)returns pick usage during session. Start with fresh session, run your code and check this value.ulimitpackage on github, link to short vignette: krlmlr.github.io/ulimit/vignettes/ulimit.html