Plot correctly with `par` Sometimes you have to work with base::plot and to combine multiple plots the solution is e.g. par(mfrow=c(1,2), ...). Unfortunately using par can mess up all...

Last Value Have you calculated something in R that took some time but you forgot to save the result? Fear no more. .Last.value always stores the last result. runif(5) ...

Is true really true? An often forgotten R-function while developing: isTRUE() and it’s brother isFALSE(). Have you found yourself in the situation that you had to write if (!is....

Keep data.frame a data.frame When writing R functions always remind yourself to think about if it can happen that you accidentally just select one column of a data.frame. This will res...

Plot correctly with `par` Sometimes you have to work with base::plot and to combine multiple plots the solution is e.g. par(mfrow=c(1,2), ...). Unfortunately using par can mess up all...