I love R, but I have two problems with it that I would like suggestions to deal with. 1. Debugging seems way more primitive than in other languages; I get cryptic messages and really struggle to pinpoint what is happening. Debugging in (free) shiny is even harder, the page says connection closed and I have to guess what has happened. 2) Code structure. R is simply fantastic in REPL and/or RStudio mode for digging aro…
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`.