Relief from backslash irritation in R for Windows

前端 未结 9 2363
没有蜡笔的小新
没有蜡笔的小新 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:18

    Not exactly the answer you're looking for but R has its own shell scripting functions which I often use:

    list.files(,full=TRUE) [returns full path with appropriate separators]

    file.path() [joins with OS-specific separator]

    and so on...

提交回复
热议问题