Relief from backslash irritation in R for Windows

前端 未结 9 2340
没有蜡笔的小新
没有蜡笔的小新 2021-02-10 10:41

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

9条回答
  •  广开言路
    2021-02-10 11:16

    I wrote a autohotkey script that is triggered by typing "rfil " - without the inverted commas.

    :O:rfil:: ;replaces backslashes with forward slashes in a file name that is stored on the clipboard
    StringReplace,clipboard,clipboard,\,/,All
    send %clipboard%
    return
    

    If anyone can tell me a quicker way than using the send command I would appreciate it. I have an autohotkey script running all the time on all my computers so I did not have to download new software in order to run this script. I simply added it to my default script file.

    I will be happy to explain what I did if you want me to.

提交回复
热议问题