Skip to content

Instantly share code, notes, and snippets.

@ggada
Created April 22, 2017 00:36
Show Gist options
  • Save ggada/8ced2771305373fa8a613512050ed4b5 to your computer and use it in GitHub Desktop.
Save ggada/8ced2771305373fa8a613512050ed4b5 to your computer and use it in GitHub Desktop.
R check packages
req.pkg <- c("tidyverse", "ggmap")
install.diff <- req.pkg[!(req.pkg %in% installed.packages()[,"Package"])]
if(length(install.diff)) install.packages(install.diff)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment