I would like to run an interactive binary using system() inside R.
In interactive mode, suppose I wanted to run the python command line interpreter from R (who knows why, but anyway ...).
When I run R from the command line (i.e. Rterm), I can start the python interpreter as follows:
> system('python.exe') Python 2.7.2 on win32 Type "help", "copyright", "credits" or "license" for more information. >>>
The thing is, I can interact with the python interpreter from R in the same way as if I started the interpreter from the command line first, and I can exit it when I finish, to return to the R prompt.
Now try the same with the R GUI:
> system('python.exe') Python 2.7.2 on win32 Type "help", "copyright", "credits" or "license" for more information. >>> >
It just launches the python.exe file (displays this welcome message), but then leaves immediately - I cannot interact with the python interpreter.
My question is: is there any way (in the R GUI, that is, in the windows one) to run this interpreter and interact with it in the same way that works from any version of the R command line?
(FYI - when I first started learning how to write R-packages, my goal as my first R-package was just to play nethack in R. It worked beautifully (I use Linux and therefore the R command line) unless I picked it up in Windows RGui, it will start the process, but will not be interactive, effectively blocking R until I have NetHack.exe).