Packages are created by R users to expand what you can do beyond base R functions. A package is a collection of functions, data sets, and other R objects grouped together under a common name.
You can search for and install packages from several repositories: Comprehensive R Archive Network (CRAN), Bioconductor, GitHub, etc.
In the 'Packages' tab of the bottom right pane of RStudio, click 'Install' to check for newer package versions and to install updates. Click the rightmost 'X' button to uninstall packages.
Two methods to install packages in RStudio:
Two options to load packages in RStudio:
The best practice is to only load the packages you need, to save memory and processing power from your session!