4.2 Loading

Most packages need to be loaded into the current environment to be accessible. You can think of packages as toolboxes, and at the start of each session we need to tell R that we want to use a particular set of tools.

We load packages with the library command:

library(readr)  # notice the lack of quotes

library statements are usually placed at the start of any code file that you write; oftentimes they’re one of the first things you’ll type before getting started.