[18818] in s-news-athena

home help back first fref pref prev next nref lref last post

[S] S-PLUS 5.1 -> S-PLUS 4.x (3.x)

daemon@ATHENA.MIT.EDU (Paul Y. Peng)
Mon Aug 2 15:03:31 1999

Message-Id: <37A5E96B.F882B53E@math.mun.ca>
Date: Mon, 02 Aug 1999 16:24:36 -0230
From: "Paul Y. Peng" <ypeng@math.mun.ca>
Mime-Version: 1.0
To: s-news <s-news@wubios.wustl.edu>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit


Dear S-PLUS users,

When I dumped a list like object (3MB) in S-PLUS 5.1 for use in
S-PLUS 2000 by data.dump("objectname", oldStyle = T), I got the
following warning messages 

> data.dump("objectname", oldStyle=T)          
There were 50 warnings (use warnings() to see them)
> warnings()
Warning messages --
1: Long name (265236 chars): sounds bad in: dd1(file, names[i], where,
meta,
        oldStyle, direct, test, i != 1)
2: Long name (88365 chars): sounds bad in: dd1(file, names[i], where,
meta,
        oldStyle, direct, test, i != 1)
3: Long name (88412 chars): sounds bad in: dd1(file, names[i], where,
meta,
        oldStyle, direct, test, i != 1)
4: Long name (88377 chars): sounds bad in: dd1(file, names[i], where,
meta,
        oldStyle, direct, test, i != 1)
5: Long name (265601 chars): sounds bad in: dd1(file, names[i], where,
meta,
        oldStyle, direct, test, i != 1)
6: Long name (88532 chars): sounds bad in: dd1(file, names[i], where,
meta,
...

Despite of the warning messages, I was still able to restore the
data in S-PLUS 2000 by data.restore(). However, I found the
resulting S-PLUS object is 2-3 times larger than its original
size in S-PLUS 5.1. Also I got similar error messages when it was
called by some S-PLUS functions in S-PLUS 2000. I traced down this
problem by applying attributes() to this object in S-PLUS 2000
and found the cause: for each component, it has two "names"
attributes! The second one is correct, but the first one takes a
text representative of the value of the corresponding component as
its value, which is extremely long if the component is large.

The same problem happens when transferring the object from S-PLUS 5.1
to S-PLUS 3.3.

I don't know where the first "names" attribute comes from. Is this
new stuff added to a list object in S-PLUS 5.x? I checked manuals
of S-PLUS 5.x and didn't find clue about this. Although I can
remove it manually, it is too clumsy and I like to know how to
handle this properly. Any help is appreciated.

Paul.
-----------------------------------------------------------------------
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

home help back first fref pref prev next nref lref last post