# 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")