Created
April 22, 2017 00:36
-
-
Save ggada/8ced2771305373fa8a613512050ed4b5 to your computer and use it in GitHub Desktop.
R check packages
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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