简体   繁体   English

在R中使用getURL访问ftp时出错

[英]Error accessing ftp with getURL in R

I want access files on the internet, but I get the following error message: 我想访问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

This is my code from this post : 这是我这篇文章的代码:

library(RCurl)    
url<'ftp://ftp.address'
    userpwd <- "user:password"
filenames <- getURL(url, userpwd = userpwd,
                    ftp.use.epsv=FALSE, dirlistonly = TRUE)

Any idea how to solve this? 任何想法如何解决这个问题?

Thanks a lot for your help! 非常感谢你的帮助!

Try: 尝试:

library(RCurl)
filenames <- getURL(url="ftp://user:password@ftp.address",ftp.use.epsv=FALSE, dirlistonly = FALSE)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM