Re: R-beta: Accessing S-plus objects from R -- no. Must use ASCII

Simon Fear (fear@scmp.scm.liv.ac.uk)
Tue, 21 Oct 1997 12:12:01 +0100


Date: Tue, 21 Oct 1997 12:12:01 +0100
From: fear@scmp.scm.liv.ac.uk (Simon Fear)
Message-Id: <199710211112.MAA12849@scmp.scm.liverpool.ac.uk>
To: r-help@stat.math.ethz.ch
Subject: Re: R-beta: Accessing S-plus objects from R -- no.   Must use ASCII 

Content-MD5: FRO8eHMEFOTvX0MGxh6Sng==
Sender: owner-r-help@stat.math.ethz.ch
Precedence: bulk

Martin's reply to Jean-Francois' question is pretty complete, but I suspect what 
JF and other new users want is 'how to transfer the *whole* of my Splus .Data 
(or _Data on PC)  workspace into R' rather than just certain functions/data.

In correspondence some months ago Peter Dalgaard and I came up with

Splus:
> dump(objects(),"dumpfile")

R:
> source("dumpfile")

or

OS-prompt% R < dumpfile

It does not always work, though, because R and S are not the same language, eg 
not all your Splus functions will work as-is. In particular, before doing the 
Splus dump, you should rm(last.warning,last.dump) and anything else source() is 
going to have trouble parsing.

Simon Fear

PS is this in the FAQ?
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=