3 ms·
For (2), you may want to look at a couple of module systems for R: https://github.com/klmr/modules https://github.com/klmr/modules https://github.com/wahani/m
by michaelsbradley 10y ago
For (2), you may want to look at a couple of module systems for R:
https://github.com/klmr/modules https://github.com/klmr/modules
https://github.com/wahani/modules https://github.com/wahani/modules
Neither is perfect, but I've found them helpful in my projects. They involve much less overhead than writing packages, especially when the modularization I'm trying to achieve is purely internal to my project and I don't intend to publish the code. At the same time, they provide much better encapsulation compared to `base::source`.