11) List all Functions in a Package.

This Blog entry is from the Getting Started in R section in Learn R.

Once a package is loaded, beyond using the help, an understanding of all the functions available to the package can be obtained.   Although a script active, console passive approach is advocated this Blog entry is one of the few occasions where it is more appropriate to use the console directly rather than clutter up the script.

Click on the console window in the bottom left hand corner of RStudio:

typing-directly-into-the-r-console.png

Type directly into the console:

ls("package:ggplot2")
ls-ready-to-be-written-out-in-the-r-console.png

Press the Enter key to execute the script:

all-the-functions-in-the-ggplot2-package-written-to-the-r-console.png

A list of all functions in the package is returned.