In case other people are interested, here is my fresh hack:
I may do the same for other R packages in the near future if the idea proves
to be useful enough.
This is quite low level, and there is no plan to support all functionalities
the R package provides.
If you want more, please contribute.