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

Simon Fear fear at scmp.scm.liv.ac.uk
Tue Oct 21 13:12:01 CEST 1997

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

> dump(objects(),"dumpfile")

> source("dumpfile")


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 at stat.math.ethz.ch

More information about the R-help mailing list