這里是佳奧况鸣!這一部分是R語言常用的命令昔搂。
1句惯、R包配置
if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install(c("GSEABase","GSVA","clusterProfiler" ),ask = F,update = F)
BiocManager::install(c("GEOquery","limma","impute" ),ask = F,update = F)
BiocManager::install(c("org.Hs.eg.db","hgu133plus2.db" ),ask = F,update = F)
安裝后:
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(ggplot2)
library(ggpubr)
library(hgu133plus2.db)
library(limma)
library(org.Hs.eg.db)
library(pheatmap)
2、工作目錄
##現(xiàn)在不用了支救,都是生成R Project文件抢野,直接打開即可
swd("D:/programe/R Data")
3、文件存儲和導入
保存
save(b, file = 'b_input.Rdata')
讀取
load(file='b_input.Rdata')
4各墨、Error: could not find function ''%>%''
library(dplyr)
5指孤、could not find function "read_csv"
library(readr)
6、could not find function "str_remove"
library(tidyverse)