[R] "dump" Splus -> R

Gregory R. Warnes warnes at biostat.washington.edu
Thu Apr 1 01:49:20 CEST 1999

  RI>> I just tried dumping and sourcing/restoring an "lm" object under
  RI>> Splus-3.4, it doesn't work there either!  This is very nasty indeed.
  RI>> We can fix the problem in R by inserting quote() around call objects,
  RI>> when we deparse, but what about Splus?

I think it is a good idea to put "substitute" (the synonym for quote)
around the call objects when deparsing.  Splus restores correctly with
the calls encapsulated in a substitute(...), as does R. 

I suppose I should submit a bug report to MathSoft and ask them to fix
thier deparse as well...

  RI>> It seems like you may want to design your scripts to provide a
  RI>> solution to the problem in both platforms.

If R is fixed, I can create a "dump.correct" for S which calls perl
directly to fix things up.  Then dump/restore will work everywhere.

BTW, can we have 

	restore _ function(...) source(...)

in base, so that the a user looking for restore doesn't have to figure out
that source can be used instead?

  RI>> 	Ross

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