2
我試圖用下面的代碼爲什麼我的download.file文件無法完成?
L <- lapply(urls, read.xls, sheet=1,header=T,skip=1,perl="C:/perl/bin/perl.exe",row.names=NULL)
檢索幾十個文件從一個網站(地址爲urls
列出)但也有少數成功下載後,我一直收到此錯誤:
Trying URL 'http://www.xyz.com'
Error in download.file(xls, tf, mode = "wb") :
cannot open URL 'http://www.xyz.com'
In addition: Warning message:
In download.file(xls, tf, mode = "wb") :
cannot open: HTTP status was '0 (nil)'
Error in file.exists(tfn) : invalid 'file' argument
爲什麼我得到這個錯誤?