Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

List of functions of a package [duplicate]

Tags:

r

Is there an easy, friendly way to list all functions of a package without downloading those huge PDFs (package references)? I need this for getting me familiar with the package, finding proper functions etc.

I tried ?rjags but it doesn't do what I expected.

like image 321
Tomas Avatar asked Oct 12 '25 07:10

Tomas


2 Answers

Load the package (for example the carpackage). Then use ls()

ls("package:car")
like image 129
Flow Avatar answered Oct 13 '25 20:10

Flow


The closest thing I've been able to find for this is:

help(,"rjags")

The first parameter specifies the searched thing, second one specifies the package. By keeping only the second one, I hope to get all help pages that relate to that package. This is equivalent of

help(package = "rjags")

This might not work in general though, as in ?help the functionality of omitting the first parameter is described as

topic is not optional: if it is omitted R will give

  • If a package is specified, (text or, in interactive use only, HTML) information on the package, including hints/links to suitable help
    topics.
like image 26
Tomas Avatar answered Oct 13 '25 21:10

Tomas