0
我想下載存儲在內部服務器中的pdf文件。r無法從服務器下載文件
此文件的URL是這樣的下面
file_location <- "file://dory.lisa.org/research/data/test.pdf"
我嘗試使用download.file選項
download.file(file_location, "test.pdf",method='curl')
,我得到一個錯誤下載此文件。
curl: (37) Couldn't open file /research/data/test.pdf
Warning message:
In download.file(file_location, "test.pdf", method = "curl") :
download had nonzero exit status
我試圖
url <- ('http://cran.r-project.org/doc/manuals/R-intro.pdf')
download.file(url, 'introductionToR.pdf')
,我沒有問題下載此文件,但不知何故,它顯示了一個錯誤,當我嘗試使用同樣的方法來下載我的服務器上的文件。
當我做了(使用shift +點擊)上的網址,我得到一個消息,說文件不exsist,但是當我複製粘貼到網頁瀏覽器的PDF相同的鏈接文件打開時沒有任何錯誤,這可能是一個情況下,實際的網址是別的 – Science11