Updated script for passing to already running RGui now uploaded.
Instructions on this post:
Macro script download (also available using link above):
Any problems, feel free to let me know.
Note that i do plan on continually improving the integration of R and Emeditor, initially with this macro, but eventually a proper plugin might be required.