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.
How to show all the functions and classes that are defined in a library?
3 messages · Peng Yu, Romain Francois, Hadley Wickham
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
On Fri, Nov 13, 2009 at 9:53 AM, Peng Yu <pengyu.ut at gmail.com> wrote:
library(some_library_name)
Try help(package = some_library_name) Hadley