Chapter 2 install MNet package

The R package MNet requires R version 4.0.0 or higher, please see https://cran.r-project.org.

相关依赖包安装

if(!require("BiocManager")){install.packages("BiocManager")}
library(BiocManager)
if(!require("Biobase")){BiocManager::install("Biobase")}
if(!require("BiocStyle")){BiocManager::install("BiocStyle")}
if(!require("BiocGenerics")){BiocManager::install("BiocGenerics")}
if(!require("ropls")){BiocManager::install("ropls")}

if(!require("pheatmap")){install.packages("pheatmap")}
if(!require("pacman")){install.packages("pacman")}
library(pacman)

p_load(readxl,ggplot2,fgsea,limma,reshape2,dnet,dplyr,stats,pathview,survival,igraph,caret,xgboost,graphite,e1071,magrittr,vegan,stringr,survminer,pROC,randomForest,jsonlite,tibble,utils,tidyr,grDevices,ggpubr,graph,ggrepel,Boruta,filesstrings,methods,tidyselect,AnnotationDbi,rmarkdown,RUnit)

MNet 安装

BiocManager::install("remotes", dependencies=T)
BiocManager::install("devtools ", dependencies=T)
BiocManager::install("tuantuangui/MNet", dependencies=T)
# 安装成功即可运行MNet
library(MNet)