美文网首页
R,包的安装

R,包的安装

作者: 按着易得 | 来源:发表于2018-12-15 20:18 被阅读0次

    来自生信菜鸟团

    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("GSEABase","GSVA","clusterProfiler" ),ask = F,update = F)
    BiocManager::install(c("GEOquery","limma","impute" ),ask = F,update = F)
    BiocManager::install(c("genefu","org.Hs.eg.db","hgu133plus2.db" ),ask = F,update = F)
    
    # source("https://bioconductor.org/biocLite.R") 
    # library('BiocInstaller') 
    # options(BioC_mirror="https://mirrors.ustc.edu.cn/bioc/") # 修改了镜像
    # BiocInstaller::biocLite("GEOquery")
    # BiocInstaller::biocLite(c("limma"))
    # BiocInstaller::biocLite(c("impute"))
    
    options()$repos
    install.packages('WGCNA')
    install.packages(c("FactoMineR", "factoextra"))
    install.packages(c("ggplot2", "pheatmap","ggpubr"))
    library("FactoMineR")
    library("factoextra")
    
    library(GSEABase)
    library(GSVA)
    library(clusterProfiler)
    library(genefu)
    library(ggplot2)
    library(ggpubr)
    library(hgu133plus2.db)
    library(limma)
    library(org.Hs.eg.db)
    library(pheatmap)
    
    
    

    相关文章

      网友评论

          本文标题:R,包的安装

          本文链接:https://www.haomeiwen.com/subject/dmxzhqtx.html