目前我正在使用R下载文件并使用download.file()
功能。
我尝试配置与getURL()
类似的所有内容,但它不适用于download.file()
。
library(RCurl)
curl = getCurlHandle()
curlSetOpt(proxy="127.0.0.1:9150", proxytype=5, curl=curl)
url <- "http://smth.com"
download.file(getURL(url,curl=curl),destfile, method = "auto",
quiet = FALSE, mode = "wb", cacheOK = TRUE,
extra = getOption("download.file.extra"))
Error in download.file(getURL(url, curl = curl), destfile, method = "auto", :
unsupported URL scheme
你可以帮我改变我的身份吗?