lvalnegri icon

r_packages_gh.R

lvalnegri | PRO | 01/05/19 06:26:23 PM UTC | 0 ⭐ | 486 👁️ | Never ⏰ | []
R |

310 B

|

None

|

0 👍

/

0 👎

# remember to first cd into the subfolder (~/scripts/r_packages/)
library(devtools)
pkgs <- readLines(file('r_packages_gh.lst'))
pkgs <- pkgs[!unname(sapply(sapply(strsplit(pkgs, '/'), '[', 2), require, char = TRUE))]
for(pkg in pkgs) install_github(pkg, dep = FALSE, auth_token = 'insert-your-github-token-here')

Comments