Keeps track of R-code