s-news
[Top] [All Lists]

[S] data.dump/data.restore

To: s-news@wubios.wustl.edu
Subject: [S] data.dump/data.restore
From: Oded Maron <oded@phz.com>
Date: Wed, 22 Dec 1999 10:57:41 -0500
Sender: owner-s-news@wubios.wustl.edu

I'm trying to move objects from S5.1 to S3.4 (on Solaris)
using data.dump and data.restore.  As a simplified example of the
wierd behavior I'm seeing:

First on Splus5.1:

  > version
  Version 5.1 Release 1 for Sun SPARC, SunOS 5.5 : 1999 

  > a <- matrix(1:4, 2,2)

  > class(a)
  [1] "matrix"

  > data.dump("a", file="../tmp/a.dump", oldStyle=T)

  > class(a)
  [1] "structure"

Now on Splus3.4:

  > version
  Version 3.4 Release 1 for Sun SPARC, SunOS 5.3 : 1996 

  > data.restore("../tmp/a.dump")
  Error: Invalid object: no data attribute: structure(..
  Dumped
  Error was while calling subroutine "S_restore"

Note that data.dump actually modifies the class of a !!

What's going on?

Oded
-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu.  To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message:  unsubscribe s-news

<Prev in Thread] Current Thread [Next in Thread>