lvalnegri

r_packages_gh.R

Jan 5th, 2019
278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
R 0.31 KB | None | 0 0
  1. # remember to first cd into the subfolder (~/scripts/r_packages/)
  2. library(devtools)
  3. pkgs <- readLines(file('r_packages_gh.lst'))
  4. pkgs <- pkgs[!unname(sapply(sapply(strsplit(pkgs, '/'), '[', 2), require, char = TRUE))]
  5. for(pkg in pkgs) install_github(pkg, dep = FALSE, auth_token = 'insert-your-github-token-here')
Add Comment
Please, Sign In to add comment