[S] "library()" in Splus 5.0 Release 2 for Sun SPARC, SunOS 5.5

Diego Kuonen (Diego.Kuonen@epfl.ch)
Thu, 26 Nov 1998 13:13:07 +0100


Dear Splus users,

I already posted yesterday a message to this list, but
I think that I have to clarify some things.

I made yesterday's example with the library trellis,
but as pointed out to me by Chuck Taylor and
Brian Ripley this library is already loaded.

So , let me state my problem again:

I'm using Splus Version 5.0 Release 2 for Sun SPARC, SunOS 5.5, and
every time I want to use the function library(), I get the following message:

...
Problem in objects(where, meta = 1): Can't interpret as a database: names(object) has
length 0, != length object (3)
Use traceback() to see the call stack
...

This is the case, say with the library Defunct:

...> library(Defunct,first=T)
Problem in objects(where, meta = 1): Can't interpret as a database: names(object) has
length 0, != length object (3)
Use traceback() to see the call stack

...> traceback()
6: eval(action, sys.parent())
5: doErrorAction("Problem in objects(where, meta = 1): Can't interpret as a database:
names(object) has length 0, != length object (3)",
4: objects(where, meta = 1)
3: setDBStatus(value, F)
2: library(Defunct, first = T)
1:
Message: Problem in objects(where, meta = 1): Can't interpret as a database: names(object)
has length 0, != length object (3)

But, in typing search(), I see that Defunct's .Data is attached:

...> search(what="paths")
[1] "."
[2] "/usr/local/splus/library/Defunct/.Data"
[3] "$SHOME/library/splus"
[4] "$SHOME/library/stat"
[5] "$SHOME/library/data"
[6] "$SHOME/library/documentation"
[7] "$SHOME/library/trellis"
[8] "$SHOME/library/main"

And, the included functions work... In looking at the code of library() this
seems to be ok, except from the error message...

BUT, in restarting Splus5, and using the library() function from Splus
Version 3.4 Release 1 for Silicon Graphics Iris, IRIX 5.3 ---
say library2() --- everything works, i.e. no error messages:

...> library2(Defunct)
...> search(what="paths")
[1] "."
[2] "/usr/local/splus/library/Defunct/.Data"
[3] "$SHOME/library/splus"
[4] "$SHOME/library/stat"
[5] "$SHOME/library/data"
[6] "$SHOME/library/documentation"
[7] "$SHOME/library/trellis"
[8] "$SHOME/library/main"

Note that $SHOME is set to /usr/local/splus in the Splus5
shell script, and that library() and library2() are not the same
functions...

Sorry to bother you again,

:-)

Diego Kuonen

--
--------------------------------------------------------------
"It is not in the stars to hold our destiny but in ourselves."
                   William Shakespeare
--------------------------------------------------------------
Diego Kuonen
Department of Mathematics, EPFL, 1015 Lausanne, Switzerland
Phone:  + 41 (0)21 693 5508
Fax  :  + 41 (0)21 693 4250
mailto:Diego.Kuonen@epfl.ch
http://dmawww.epfl.ch/~kuonen
http://statwww.epfl.ch/~kuonen
--------------------------------------------------------------

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