R语言入门mac——安装【附安装链接】
一、总体安装步骤
1 安装R
RStudio需要R 3.0.1+
下载链接:https://cran.rstudio.com/
2下载RStudio
下载链接:https://rstudio.com/products/rstudio/download/
二、R包安装
下面展示 r包安装代码
rm(list = ls())
options()$repos
options()$BioC_mirror
options(BioC_mirror="https://mirrors.ustc.edu.cn/bioc/")
options("repos" = c(CRAN="https://mirrors.tuna.tsinghua.edu.cn/CRAN/"))
options()$repos
options()$BioC_mirror
# https://bioconductor.org/packages/release/bioc/html/GEOquery.html
if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install("KEGG.db",ask = F,update = F)
BiocManager::install(c('airway','DESeq2','edgeR','limma'),ask = F,update = F)
BiocManager::install(c('ALL','CLL','pasilla','clusterProfiler'),ask = F,update = F)