在 R 中使用 getURL 访问 ftp 时出错
Error accessing ftp with getURL in R
我想访问 Internet 上的文件,但收到以下错误消息:
Error in function (type, msg, asError = TRUE) : Access denied: 530
In addition: Warning messages:
1: In strsplit(str, "\\r\\n") : input string 1 is invalid in this locale
这是我的代码 post:
library(RCurl)
url<'ftp://ftp.address'
userpwd <- "user:password"
filenames <- getURL(url, userpwd = userpwd,
ftp.use.epsv=FALSE, dirlistonly = TRUE)
知道如何解决这个问题吗?
非常感谢您的帮助!
尝试:
library(RCurl)
filenames <- getURL(url="ftp://user:password@ftp.address",ftp.use.epsv=FALSE, dirlistonly = FALSE)
我想访问 Internet 上的文件,但收到以下错误消息:
Error in function (type, msg, asError = TRUE) : Access denied: 530
In addition: Warning messages:
1: In strsplit(str, "\\r\\n") : input string 1 is invalid in this locale
这是我的代码 post:
library(RCurl)
url<'ftp://ftp.address'
userpwd <- "user:password"
filenames <- getURL(url, userpwd = userpwd,
ftp.use.epsv=FALSE, dirlistonly = TRUE)
知道如何解决这个问题吗?
非常感谢您的帮助!
尝试:
library(RCurl)
filenames <- getURL(url="ftp://user:password@ftp.address",ftp.use.epsv=FALSE, dirlistonly = FALSE)