Skip to content

Instantly share code, notes, and snippets.

@aaronbaggett
Created February 2, 2022 19:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aaronbaggett/7aa412f8a8dae92c56530769dabace24 to your computer and use it in GitHub Desktop.
Save aaronbaggett/7aa412f8a8dae92c56530769dabace24 to your computer and use it in GitHub Desktop.
Use the R code in this script to install and load the {tidyverse} and {devtools} packages. We can always add this script when we need to install other packages.
# -------------------------------------------------------------------------
# Installing Add-On R Packages
# Spring 2022
# SOCI 4391-01: Advanced Data Analytics
# -------------------------------------------------------------------------
# PRO TIP:
# Highlight lines 10-18 then press -> Run above
if (! require(tidyverse)){
install.packages("tidyverse")
}
library(tidyverse)
if (! require(devtools)){
install.packages("devtools")
}
library(devtools)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment