I have a remote folder on a webserver containing data. I access the data using:
myData <-read.table("http://.../myData.csv", sep=',', header=T)
Is there a way to password protect the remote folder and enter the authorisation in the above command?
Thx.
You could use the RCurl package:
require("RCurl")
read.table(textConnection(getURL("http://.../data.csv",
userpwd = "user:pass")),
sep=",", header=TRUE)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With