方法一:GitHub
- 已知对方github的用户名
library(devtools)
devtools::install_github(“name/name”)
- 不知道,盲安
library(githubinstall)
githubinstall(“ggplot2”)
方法二:bioconductor
- 版本低的R
source("https://bioconductor.org/biocLite.R")
biocLite("ggplot2")
- 版本高的R
library(BiocManager)
BiocManager::install("SARdb")
方法三:原始而好用
install.packages("")