prepare R files for sourcing