[問題] download.file回傳error

看板R_Language作者時間5年前 (2018/10/03 18:25), 5年前編輯推噓0(006)
留言6則, 4人參與, 5年前最新討論串1/1
[問題類型]: 程式諮詢(我想用R 做某件事情,但是我不知道要怎麼用R 寫出來) [軟體熟悉度]: 新手 [問題敘述]: download.file(method="curl")執行後出現error:'curl' call had nonzero exit status 但不知道為何出現error,還請各位指點,謝謝~ [程式範例]: >data.url <- "https://quality.data.gov.tw/dq_download_csv.php?nid=91734&md5_url=ef2c4d2409b03c7a6a1ca4452bb96832" > data.file <- C:\\r\\dataset.cv > download.file(url = data.url, destfile = data.file, method = "curl") [環境敘述]: R console [關鍵字]: error,download.file,curl -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 140.113.95.153 ※ 文章網址: https://www.ptt.cc/bbs/R_Language/M.1538562348.A.15E.html ※ 編輯: cindy6519 (140.113.95.153), 10/03/2018 18:27:54

10/03 19:01, 5年前 , 1F
目的地寫成 "C:/some/where/filename.csv" 之類的
10/03 19:01, 1F

10/03 21:02, 5年前 , 2F
我猜是某種網路相關問題。
10/03 21:02, 2F

10/03 21:02, 5年前 , 3F
但是具體是什麼問題,訊息不足無法判斷了
10/03 21:02, 3F

10/03 22:04, 5年前 , 4F
你的系統沒有 curl 這個程式吧? 對 R 來說,跑 curl
10/03 22:04, 4F

10/03 22:05, 5年前 , 5F
這個外部程式失敗,所以它"had nonzero exit status"
10/03 22:05, 5F

10/04 20:06, 5年前 , 6F
安裝Rtools就有curl了吧
10/04 20:06, 6F
文章代碼(AID): #1Rj9ai5U (R_Language)