安装&导入R包
install&library_R-packages
install.packages("ggplot2")install.packages("ggplot2", repos = "https://mirrors.ustc.edu.cn/CRAN/")install.packages("BiocManager")
library("BiocManager")
BiocManager::install("R包名")
#使用GitHub安装:
install.packages("devtools")
library(devtools)
install_github("库名/R包名")install.packages("下载路径/R包名", repos = NULL, type = "source")package_url = "下载地址"
install.packages(package_url, repos = NULL, type = "source")library("R包名")Last updated