Hacker News new | past | comments | ask | show | jobs | submit login

For (2), you may want to look at a couple of module systems for R:

https://github.com/klmr/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`.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: