Modular Programming in R
function, module, package, r
Solution
Yes you can make subscripts containing functions for example and use `source` to source them.
I think the best way to do this depends on the case, but just write your functions, save them as .R files and `source` them in your script
Problem
Quite new to R, I am wondering if it is possible to shrink own blowed-up R scripts by packaging parts into sub scripts, like modules or global own functions. This is somewhat usual in other interpreter languages. What is the best way split data-reading, plotting, designing, exporting, etc in different R modules?