[S] Misinformation in objects() help and a objects.summary() bug (Win9x) [Part 2 of 2]

John Wallace (jrw@fish.washington.edu)
Tue, 27 Oct 1998 02:33:25 -0800 (PST)


The last example in the online help for objects() (Win ver 4.x, but not
Win ver 3.3) gives:

# an example of using the backslash with objects in S-PLUS
SP500 <- S.P500 <- 1
objects(pattern = "^S\.")
[1] "S.P500"

Clearly, this is a hold over from the Unix version and not applicable for
Windows, for which:

objects(pattern = "S.*")
[1] "S.P500"

would work (but is not an example of using a backslash).

An objects.summary() bug in Win9x is also related to backslashes:

ls(print.coxph, all=T) # Using my new ls() function here
[[5]]:
[1] print.coxph print.coxph.null

xx <- objects.summary(objects(wh = 5, pat = "*print.coxph*"), where = 5)
# Replace 5 with the search list location for print.coxph, if different

> xx[1,]
data.class storage.mode extent object.size dataset.date
print.coxph function function 4 15347 206.02.05 22:28\006

> xx[2,]
data.class storage.mode extent object.size
print.coxph.null function function 4 3465
dataset.date
print.coxph.null 206.02.05 22:28\006

> xx
data.class storage.mode extent object.size
print.coxph function function 4 15347
print.coxph.null function function 4 3465
dataset.date
print.coxph 206.02.05 22:28206.02.05 22:28\006
print.coxph.null 206.02.05 22:28\006

Note the extra "22:28206.02.0" in the first row; this error propagates
and becomes large with:

ls(print, all=T, long=T)) # Again my new ls()

I am also unsure what the "dataset.date" information means in built-in
functions. With user functions, the "dataset.date" makes perfect
sense:

> ls(ls, long=T, wild=F)
[[1]]:
data.class storage.mode extent object.size dataset.date
ls function function 7 11196 98.10.24 2:13

-- 
John Wallace
University of Washington                    ^    ^    ^
Fisheries Research Institute               / \  / \  / \   ^
Box 357980                                 / \  / \   |   / \
Seattle, WA 98195-7980                      |    |  o__~  / \
PHONE   (206) 543-1513                  @ @         /\/\   |
FAX     (206) 685-7471                   ~    
E-MAIL        jw@u.washington.edu              o
WWW      http://www.fish.washington.edu/people/jrw/Wallace.html 
                                                o  _///_ //
                                                <`)=  _<<
                                                    \\\  \\

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