title: Programmatically open a text file in R?
body: <p>Is there something in R to open a text file? In Python, one could <a href="https://stackoverflow.com/questions/6178154/open-a-text-file-using-notepad-as-a-help-file-in-python">open a text file using notepad</a>: </p>
  
  <pre><code>import subprocess as sp
  programName = "notepad.exe"
  fileName = "file.txt"
  sp.Popen([programName, fileName])
  </code></pre>
  
  <p>Other methods are described in the post as well. Is there something similar in R? </p>