Investigating issues: profiling and debugging
When we write code for performing non-trivial statistical computations, we almost inevitably encounter bugs and performance issues. This section provides an introduction to debugging and profiling in R, as well as a light introduction to performance in R.