Thanks for the tip. From the link you posted:
| You can embed the user id and password into the URL. For example:
|
| http://userid:[email protected]/
| ftp://userid:[email protected]/
I'm still having issues, though. I am trying to fetch some csv files from a
storage site used by my company, and I've tried the read.csv and
download.file commands. These are the error messages that pop up:
> read.csv("ftp://userid:[email protected]/data.csv")
Error in file(file, "rt") : cannot open the connection
> download.file("ftp://userid:[email protected]/data.csv",
> "C:/data.csv")
trying URL 'ftp://userid:[email protected]/data.csv'
Error in download.file("ftp://userid:[email protected]/data.csv", :
cannot open URL 'ftp://userid:[email protected]/data.csv'
Am I leaving out any important options from these commands, that would allow
me to access the site if I include them? When I type the URL into Firefox
the same way I have entered it into R, I get the files I need. But for my
particular project, I am going to have to automate the process.
Obviously these are not my real userID, password, or website name. In case
it is relevant, I am trying to access files that store information on the
positions in my company's stock portfolio; these files are stored on our
brokerage firm's website.
--
View this message in context:
http://r.789695.n4.nabble.com/Accessing-files-on-password-protected-FTP-sites-tp2286862p2287373.html
Sent from the R help mailing list archive at Nabble.com.
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.