[Rd] wishlist -- names gives slotnames (PR#7410)

epurdom at stanford.edu epurdom at stanford.edu
Thu Dec 9 19:28:40 CET 2004

Full_Name: Elizabeth Purdom
Version: 1.9.1
OS: Windows XP
Submission from: (NULL) (

It would be nice if names(obj) would give slot names as well. Since for many
people slots are new, the first thing that happens is you try to access what's
in them and can't find how to do it. If you don't know that slotNames() exists,
it can be very frustrating. Moreover, if you don't even know that the objects
has slots (or that such things exist), it's extremely confusing. It just looks
like nothing is there (you get NULL). If needed, you could have a message that
says that these are slots and should be accessed with "@". 

More information about the R-devel mailing list