我正在尝试使用“数据科学”这本书做一个练习,并且在这段代码中我一直都是错误的。
mt <- read.xls("rollingsales_manhattan.xls", perl="C:\\Perl64\\bin\\perl.exe", pattern="BOROUGH",stringsAsFactors=FALSE)
出现此错误......
Error in xls2sep(xls, sheet, verbose = verbose, ..., method = method, :
Intermediate file 'C:\Users\carson\AppData\Local\Temp\RtmpMjMWfI\file267c48c84956.csv' missing!
Error in file.exists(tfn) : invalid 'file' argument
我已经将perl值添加到我的方法调用中,以指定Perl解释器在我的机器上的位置。我已确保工作目录正确且文件名正确...执行以下命令以验证...
> list.files()
[1] "Capture.PNG" "dds_ch2_rollingsales"
[3] "gross_sqft_vs_price.png" "gross_sqft_vs_price_with_trend.png"
[5] "load_cleandata.r" "model1 vs index.png"
[7] "model2 vs index.png" "model2a vs index.png"
[9] "model3 vs index.png" "model4 vs index.png"
[11] "rollingsales_manhattan.xls"
任何帮助?
答案 0 :(得分:0)
从头开始重新启动R studio解决了这个问题。