一些常用的从 github 上安装 R 包的方法:
# 1. devtools
install.packages("devtools", dep=TRUE)
library(devtools)
install_github("caitiecollins/treeWAS", build_vignettes = TRUE)
# 2. githubinstall
library(githubinstall)
install_github('hadlley/dplyr')
# 3. remotes
install.packages('remotes')
remotes::install_git("https://hub.fastgit.xyz/yzhlinscau/AFEchidna.git")
本人经常用第三种方法。