R语言包的几种安装形式
001、R语言自带的包
install.package("ggpplot2")
002、bioconductor
if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install("DESeq2")
003、github
install.packages("devtools")
library(devtools)
devtools::install_github("hadley/ggplot2")
004、本地安装包:
install.packages("/PATH/to/package_name.tar.gz", repos = NULL, type = "source")
.

浙公网安备 33010602011771号