7.1 Getting the package

install.packages("dplyr")

Again, you may be asked to choose a CRAN mirror; RStudio is a good choice.

Unlike the rmarkdown package, we’ll be using dplyr in the console. In order to do that, we need to load the package into our environment so we can access functions from dplyr. We do this with the library command:

library("dplyr")

You only need to install a package once per computer, but you need to load it every time you open a new R session and want to use that package.