Last active
August 8, 2017 20:00
-
-
Save niranjv/861de3dac2515d35ac4dbc0868fe0e8c to your computer and use it in GitHub Desktop.
List contents of R package
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Use `ls` to view package contents | |
# Ref | |
# - https://stackoverflow.com/questions/12575098/to-see-all-the-content-not-just-objects-in-a-package-in-r | |
# Example for ISLR package, assuming it is installed | |
ls(pos="package:ISLR") | |
# To view only datasets in a package (results will open in a new tab): | |
data(package="ISLR") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment