所以我遇到了UNC路径的问题。根据其他UNC相关主题,正确的形式应该是:用于R中的read.csv的UNC路径
source <- read.csv("\\\\W:\\Reports\\report.csv")
但后来我得到了错误信息:
Error in file(file, "rt") : cannot open the connection
In addition: Warning message:
In file(file, "rt") :
cannot open file '\\W:\Reports\report.csv': Invalid argument
正如我有权访问十分文件夹和文件的用户 - 我积极的。
如果替换正斜杠反斜杠,在R中可以很容易地使用Windows路径。因此,例如'W:/ Reports/report.csv'。 – TARehman
尝试使用'file.choose()'来查找路径。 –