[R] save R object into a remote directory
Rainer M Krug
Rainer at krugs.de
Tue Sep 6 10:30:02 CEST 2016
Simone Tenan <tenan.simone at gmail.com> writes:
> Hi all,
> I'm using R remotely via ssh connection in linux. I need to save a large R
> object from the remote server to my laptop. How can I specify the path in
> the save() function?
You are working on the remote machine and there is no way that you can
specify "out of the box" a save to client machine (I stand to be corrected).
You could mount a directory on the client on the server, but I would
suggest to
1) save the object on the server (the where R is running on)
2) use scp from the client to copy the file from the server to the
client (the one you are typing on).
scp user at host1:file1 ./TheNameOfTheLocalFile
Cheers,
Rainer
>
> Thanks much for your help,
> Simone
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.
--
Rainer M. Krug
email: Rainer<at>krugs<dot>de
PGP: 0x0F52F982
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 454 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20160906/0283a3db/attachment.bin>
More information about the R-help
mailing list