Last active
March 24, 2017 10:38
-
-
Save dainiuxt/731ffebc9672a600022a to your computer and use it in GitHub Desktop.
Install packages in R on demand (if require)
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
if (!require("data.table")) { | |
install.packages("data.table") | |
} | |
if (!require("reshape2")) { | |
install.packages("reshape2") | |
} | |
require("data.table") | |
require("reshape2") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment