I have a simple script file called test.R
. It's saved in the working directory. When I go to File > Open > test.R
, it opens the file in the editor (without executing the code, which is what I want).
How do I do this by typing a command in the console window? To be clear, I just want to open (not execute) the file.