2017-06-01 86 views
0

我想在互联网上访问文件,但我得到了以下错误消息:错误访问FTP用的getURL R中

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) 

任何想法如何解决这个问题?

非常感谢您的帮助!

回答

1

Try:

library(RCurl) 
filenames <- getURL(url="ftp://user:[email protected]",ftp.use.epsv=FALSE, dirlistonly = FALSE)