R can read files on a web server using convenient syntax such as
data <- read.delim("http://remoteserver.com/file.dat")
I wonder if there is a way to do something similar with a file on an ssh server with passwordless-ssh already in place?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can read a file using pipes like this:
If you wanted to read from an SSH connection, try this:
There’s also no reason to confine this to just ssh commands, you could also do something like this:
See the R Data Import/Export page for more information, specifically the Connections section.