just for completeness and to be fair, you can do stuff like that in R.
- You can always
pastetogether a string exactly as you want andevalthat - in particular, a
formulacan be given as just a string, so all regression stuff is easy to construct programmatically - slightly more advanced is
tidyandpurrretc like here for example.
of course none of this is proper metaprogramming will remain a hack forever.