Installing Packages for AC547

Installing multiple packages in one step

If you have followed along with the getting started tutorial, then you have already installed the tidyverse set of packages as follows:

install.packages('tidyverse')

In this course, we will make use of many more packages. To install these all at once we will store the package names into a list (or “vector”) and pass on to the install.packages function.

packages <- c(
  'cluster',
  'data.table',
  'esquisse',
  'factoextra',
  'haven',
  'janitor',
  'plotly',
  'scales',
  'stargazer',
  'usmap',
  'zoo'
)

install.packages(packages)

That’s it! You have just installed multiple packages.