Debugging in R with restore points