2017-11-27 1 views
0

Doing Data Science 서적에서이 코드를 연습하려고합니다. 나는 계속 오류를 범하고있다. 이 오류와 함께 R 오류 : R의 xls 스프레드 시트를 읽을 수 없습니다. "file.exists (tfn) : 'file'인수가 잘못되었습니다."

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 

나는 펄 인터프리터가 내 컴퓨터에 어디에 내 메서드 호출에 펄 값이 지정하는 것을 추가했습니다. 작업 디렉토리가 정확한지, 파일 이름이 올바른지 확인했습니다. 확인을 위해 다음 명령을 수행했습니다. ...

> 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

R 스튜디오를 처음부터 다시 시작하면 문제가 해결됩니다.

관련 문제