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