title: Relief from backslash irritation in R for Windows
body: <p>Early in my R life I discovered the pain of R and windows being on different pages when it came to the separator between directories and subdirectories. Eventhough I know about the problem, I am still pained by manually having to put a backslash in front of all my backslashes or replacing all of them with forward slashes. </p>
  
  <p>I love copying a path name or an entire filename with any one of several applications that I have running on my computer (eg. XYPlorer, Everything by voidtools) and then pasting it into Tinn-R. Is there anyway that I could automate the task that I am currently doing manually.</p>
  
  <ul>
  <li>Is there a setting in Tinn-R?</li>
  <li>Is there a setting in R?</li>
  <li>Is there a autohotkey script that could do it for me by default?</li>
  </ul>
  
  <hr>
  
  <p>Background for those who don't know what I am talking about</p>
  
  <p>Quoting from R for Windows FAQ, Version for R-2.9.2, B. D. Ripley and D. J. Murdoch</p>
  
  <blockquote>
    <p>Backslashes have to be doubled in R
    character strings, so for example one
    needs
    `"d:\R-2.9.2\library\xgobi\scripts\xgobi.bat"'.
    You can make life easier for yourself
    by using forward slashes as path
    separators: they do work under Windows</p>
  </blockquote>