I try to run interactive R (Windows XP) with a script input that launches several commands, and then leaves me on the R command line. However, when I run it, it exits.
For example, here is the input file:
test.r:
x = 1
x
This is what happens when I run it with the input file as a parameter:
C:\>R --file test.t
>x = 1
>x
[1] 1
C:\> <--- exits and returns to prompt
Is there any way to run this without exiting R?
source
share