[R] R and SSH / exchange R objects between client and server
frans.marcelissen at digipsy.nl
Tue Jan 1 22:39:11 CET 2013
In addition to what Duncan writes: I think winscp does exactly what you
want. You can copy objects from/to linux, but also edit files from linux on
the winduts machine without explicitly copying (of course you do copy the
file, but is done automatically).
dr F.H.G. (Frans) Marcelissen
fransiepansiekevertje at hotmail.com
Van: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org]
Namens Duncan Murdoch
Verzonden: dinsdag 1 januari 2013 21:39
Aan: Martin Batholdy
CC: r-help at r-project.org
Onderwerp: Re: [R] R and SSH / exchange R objects between client and server
On 13-01-01 2:42 PM, Martin Batholdy wrote:
> I have a laptop (Mac OS) and a remote PC (Ubuntu) and would like to do the
heavy work on the remote machine but control it via the laptop.
> I managed to install ssh server and can now remotely connect to my PC via
ssh and can start an R session in the terminal.
> However, I still don't quite understand how I can now "exchange" R
> I have the raw data I want to read and analyse on my laptop.
> So I need to read the files on the laptop and 'send' the r object to the
> The remote PC should then do the heavy calculations and send back the
result data frames, so that I can export/save the result tables on my
> Is this even possible with ssh (send R objects from client to server and
Use save() and load() to create and read binary files containing the objects
you want to exchange. Use scp to move them between systems.
(Or sftp, or something else to move files.)
> Are there R packages who help to establish ssh connections?
Not that I know of. You just use the command line utilities via
system() or shell().
> Can I also connect to the server via the R gui?
Not with base R. There are some front ends written by others that do this,
R-help at r-project.org mailing list
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
More information about the R-help