spit up R code in package