Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- use_package <- function(p) {
- if (!is.element(p, installed.packages()[,1]))
- install.packages(p, dep = TRUE)
- library(p, character.only = TRUE)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement