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")

 

 

posted @ 2025-11-28 18:54  小鲨鱼2018  阅读(6)  评论(0)    收藏  举报