[R] How to show all the functions and classes that are defined in a library?
Romain Francois
romain.francois at dbmail.com
Fri Nov 13 17:04:53 CET 2009
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
More information about the R-help
mailing list