Packages are plug-ins that make R easier to use. R is a smartphone and a package is an app you download from the app store CRAN.
There are two main ways you can download a package inside R Studio.
Run the code install.packages("packagename")
at the console. For instance, to install the tidyverse, do install.packages("tidyverse")
.
From time to time you may need to update a package. Easiest way is to open R Studio, go to “Tools”, then select “Check for package updates”. A dialog box will appear. Select any and all packages you want to update, then click “Install Updates”. It looks something like this: