Peng Yu
2009-Nov-13 15:53 UTC
[R] How to show all the functions and classes that are defined in a library?
library(some_library_name) Suppose I load a library. I'm wondering what command I should use to list all the functions, classes and variables defined in the library.
Romain Francois
2009-Nov-13 16:04 UTC
[R] How to show all the functions and classes that are defined in a library?
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