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

前端 未结 3 1332
感情败类
感情败类 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-06 04:14

    a slightly more cross-platform approach

    # the two '' are required to represent the two leading slashes of the UNC path
    read.csv(file.path('', '', 'COMPUTER', 'Directory' 'file.txt'))
    

提交回复
热议问题