Skip to content
Prev 105535 / 398506 Next

example() and example(package=) like data() and data(package=) ?

data() and data(package="foo") present screens
describing available data sets in all or specified packages,
and
dd <- data()
returns a structure where dd$results contains columns for
"Package" "LibPath" "Item" "Title", all of which make it easy
to 'do things' with package data.

Is there any reason why there should not be parallel uses,
example() and example(package="foo") not requiring a topic
to be specified?  That would be very handy, especially for
exploring a new package or developing tools for documenting
them, with output.

-Michael