0

I want access files on the internet, but I get the following error message:

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!

MSS
  • 345
  • 4
  • 12

1 Answers1

1

Try:

library(RCurl)
filenames <- getURL(url="ftp://user:password@ftp.address",ftp.use.epsv=FALSE, dirlistonly = FALSE)
Floern
  • 33,559
  • 24
  • 104
  • 119
Sunny
  • 407
  • 5
  • 15