splits R package R code into separate files