Created
October 11, 2017 04:55
-
-
Save ZeccaLehn/c93150bbcae7cae459fa69e8dfd07a12 to your computer and use it in GitHub Desktop.
Install and Load Multiple Packages R
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
packages <- c("twitteR", "dismo", "maps", "ggplot2") | |
installAll <- packageList[!packages %in% rownames(installed.packages())] | |
if(installAll){install.packages(installAll, repos = "http://cran.us.r-project.org")} else {print("No Packages Installed")} | |
lapply(packages, library, character.only = TRUE) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment