Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2019
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. use_package <- function(p) {
  2. if (!is.element(p, installed.packages()[,1]))
  3. install.packages(p, dep = TRUE)
  4. library(p, character.only = TRUE)
  5. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement