separate R code from manuscript