While this can make coding some trivial examples easier, it makes use of embedded R on Roxie or thor problematical, as R environment from other queries will still be loaded.
The default behaviour should be to run each embedded R function in a local environment - with a options to persist/share this environment between embed calls in the same way as was provided for Python.