On 11/13/2009 04:53 PM, Peng Yu wrote:
library(some_library_name)
Suppose I load a library.
You mean "package" right ? A library is a set of packages
I'm wondering what command I should use to
list all the functions, classes and variables defined in the library.
Check ?ls :
> ls( "package:some_package_name" )
> ls( "package:some_package_name", all = TRUE )
Sometimes you want to see even those that are not exported from the
namespace:
> ls( asNamespace( "some_package_name" ) )
> ls( asNamespace( "some_package_name" ), all = TRUE )
Romain
--
Romain Francois
Professional R Enthusiast
+33(0) 6 28 91 30 30
http://romainfrancois.blog.free.fr
|- http://tr.im/EAD5 : LondonR slides
|- http://tr.im/BcPw : celebrating R commit #50000
`- http://tr.im/ztCu : RGG #158:161: examples of package IDPmisc
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.