Contains various shared R code