split up the functions.R file into one file per function