我已将Azure ML Studio中的一些CSV文件作为Zip文件上传。现在,当我尝试使用以下语句在R脚本模块中读取这些CSV文件时,它会失败并出现以下错误。它附加到脚本包端口的R脚本模块的Zip文件数据集。
代码声明:
feed <- read.csv("src/KMTS-MORI-NMV-5000-1213-PATH_FEEDRATE-ACTUAL.csv", header=F)
feed <- read.csv("./src/KMTS-MORI-NMV-5000-1213-PATH_FEEDRATE-ACTUAL.csv", header=F)
feed <- read.table("src/KMTS-MORI-NMV-5000-1213-PATH_FEEDRATE-ACTUAL.csv", header=F, sep=",")
feed <- read.table("./src/KMTS-MORI-NMV-5000-1213-PATH_FEEDRATE-ACTUAL.csv", header=F, sep=",")
feed <- read.table(file="src/KMTS-MORI-NMV-5000-1213-PATH_FEEDRATE-ACTUAL.csv", header=F, sep=",")
错误讯息:
Error 0063: The following error occurred during evaluation of R script:
---------- Start of error message from R ----------
cannot open the connection
cannot open the connection
----------- End of error message from R -----------
Start time: UTC 08/29/2015 23:20:28
End time: UTC 08/29/2015 23:20:37
答案 0 :(得分:1)
您可以检查文件是否出现在./src下的子文件夹中,例如在模块中运行此R脚本。
data.set&lt; - as.data.frame(list.files(&#34; src&#34;,full.names = TRUE,recursive = TRUE))