2017-06-01 91 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)