问题描述
尝试使用HTTR和RCurl从ftp服务器获取文件的任何方法均无效。 真实情况。用户和密码凭据是真实的。 第一个HTTR
library(httr)
GET(url = "ftp://77.72.135.237/2993309138_Tigres.xls",authenticate("xxxxxxx","xxxxxx"),write_disk("~/Downloads/2993309138_Tigres.xls",overwrite = T))
#> Error: $ operator is invalid for atomic vectors
第二个RCurl
library(RCurl)
my_data <- getURL(url = "ftp://77.72.135.237/2993309138_Tigres.xls",userpwd = "xxxxxx")
#> Error in curlPerform(curl = curl,.opts = opts,.encoding = .encoding): embedded nul in string: 'ÐÏ\021ࡱ\032á'
是服务器端错误还是我的? :)
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)