[R] example() and example(package=) like data() and data(package=) ?

Michael Friendly friendly at yorku.ca
Mon Dec 4 21:40:54 CET 2006


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
-- 
Michael Friendly     Email: friendly AT yorku DOT ca
Professor, Psychology Dept.
York University      Voice: 416 736-5115 x66249 Fax: 416 736-5814
4700 Keele Street    http://www.math.yorku.ca/SCS/friendly.html
Toronto, ONT  M3J 1P3 CANADA




More information about the R-help mailing list