更新和安装R

2020-02-26  本文已影响0人  依然At

不定时的更新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("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)

上一篇 下一篇

猜你喜欢

热点阅读