Dear All, I'm a newbie to R having just switched from S-Plus. I was able to port my files from S-Plus for Linux to R for OSX using the S-Plus "data.dump", and the R "data.restore" commands. I've decided that I like R enough to install it on my Linux box, but I can't figure out an easy way to get multiple files from my OSX macintosh R environment to a Linux install of R, as there does not appear to be a "data.dump" command in R. I tried to use tar to archive my directories and binary .Rdata files and simply extract them to a new machine. This works fine going from one OSX machine to another, but does not work going from OSX to Linux, presumably due to binary file or directory incompatibilities. Does anyone have any suggestions for a work around to this problem? Thanks, Joe ______________________________________________ Dr. Joseph D. Ortiz Assistant Professor - Geology Kent State University 336 McGilvrey Hall P.O. Box 5190 Kent, OH 44242-0001 Phone: 330-672-2225 FAX: 330-672-7949 email: jortiz at kent.edu Web: http://www.personal.kent.edu/~jortiz/home/
Joseph Ortiz wrote:> Dear All, > > I'm a newbie to R having just switched from S-Plus. > > I was able to port my files from S-Plus for Linux to R for OSX using the > S-Plus "data.dump", and the R "data.restore" commands. I've decided that > I like R enough to install it on my Linux box, but I can't figure out an > easy way to get multiple files from my OSX macintosh R environment to a > Linux install of R, as there does not appear to be a "data.dump" command > in R. > > I tried to use tar to archive my directories and binary .Rdata files and > simply extract them to a new machine. This works fine going from one OSX > machine to another, but does not work going from OSX to Linux, > presumably due to binary file or directory incompatibilities. > > Does anyone have any suggestions for a work around to this problem? > > Thanks, > Joe > ______________________________________________ > > Dr. Joseph D. Ortiz > Assistant Professor - Geology > Kent State University > 336 McGilvrey Hall > P.O. Box 5190 > Kent, OH 44242-0001 > Phone: 330-672-2225 > FAX: 330-672-7949 > email: jortiz at kent.edu > Web: http://www.personal.kent.edu/~jortiz/home/ > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-helpSee ?dump and ?save, the latter has an argument ASCII for portability reasons. Uwe Ligges
Joseph Ortiz <jortiz at kent.edu> writes:> I tried to use tar to archive my directories and binary .Rdata files > and simply extract them to a new machine. This works fine going from > one OSX machine to another, but does not work going from OSX to Linux, > presumably due to binary file or directory incompatibilities. > > Does anyone have any suggestions for a work around to this problem?It should work to move .Rdata files (the format is platform independent), just watch out that the R versions are compatible (or read the documentation for save() to see how to generate back-compatible files). This could be a bug, but what are the precise symptoms then? -- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
Joseph Ortiz <jortiz at kent.edu> writes:> Dear All, > > I'm a newbie to R having just switched from S-Plus. > > I was able to port my files from S-Plus for Linux to R for OSX using > the S-Plus "data.dump", and the R "data.restore" commands. I've > decided that I like R enough to install it on my Linux box, but I > can't figure out an easy way to get multiple files from my OSX > macintosh R environment to a Linux install of R, as there does not > appear to be a "data.dump" command in R. > > > I tried to use tar to archive my directories and binary .Rdata files > and simply extract them to a new machine. This works fine going from > one OSX machine to another, but does not work going from OSX to Linux, > presumably due to binary file or directory incompatibilities. > > > Does anyone have any suggestions for a work around to this problem?Use save and load. Files generated by save() can be read by load() on any platform.
Dear All, Thanks to all of the individuals who responded to my question regarding cross-platform compatibility with R. My problem turned out to be incompatible versions of R on two machines. I was able to upgrade to consistent versions of R on my linux and OSX boxes and transfer files and directories directly from one machine to another using compressed tar archives. To summarize the responses, the following methods can be used to transfer files by ftp or physical media between R installs on different machines and OS systems: 1. tar and compress files 2. Use the R dump and source commands 3. Use the R save and load commands Cheers, Joe ______________________________________________ Dr. Joseph D. Ortiz Assistant Professor - Geology Kent State University 336 McGilvrey Hall P.O. Box 5190 Kent, OH 44242-0001 Phone: 330-672-2225 FAX: 330-672-7949 email: jortiz at kent.edu Web: http://www.personal.kent.edu/~jortiz/home/