I've been asked about profiling R code. I've never done that (unless you consider using
microbenchmark on different versions of a function as poor man's profiling ). Hadley suggests to use
lineprof in Advanced R http://adv-r.had.co.nz/Profiling.html: I know that RStudio supports
- Which solution or package do you suggest me to use?
- I need to train people on this stuff, so I need to study and learn this well, and I need references. I don't think a simple blog post will give me enough expertise to train others, unless it's a fairly comprehensive tutorial. Can you refer me to books or papers on this?
PS MOOCs recommendations would be fine.