How to read files from a UNC-specified directory in R?

前端 未结 3 1347
感情败类
感情败类 2021-01-06 03:48

Is it possible to read files from a UNC-specified directory in R? I\'d like to do it without using any packages beyond the base installation.

3条回答
  •  情书的邮戳
    2021-01-06 04:14

    UNC names work fine, you just have to escape them correctly. This works for me:

    read.csv('\\\\COMPUTER\\Directory\\file.txt')
    

提交回复
热议问题