安装IMvigor210CoreBiologies R包遇到的一系列问题
IMvigor210CoreBiologies 是非常经典的免疫治疗队列的数据包,课题需要所以必须下载安装
官方给出的安装步骤已经过时了,参考生信技能树的安装步骤,首先安装了一堆依赖包。
list.of.packages <- c("shiny",
"tidyr",
'tidyverse',
"clusterProfiler",
"DT",
"ashr",
"enrichplot",
"plotly")
all_packages = rownames(installed.packages())
save(all_packages,file = 'all_packages.Rdata')
#checking missing packages from list
new.packages <- list.of.packages[!(list.of.packages %in% installed.packages()[,"Package"])]
new.packages
packToInst <- setdiff(list.of.packages, installed.packages())
packToInst
if(T){
lapply(packToInst, function(x){
BiocManager::install(x,ask = F,update = F)
})
}
lapply(intersect(packagesReq, installed.packages()),function(x){
suppressPackageStartupMessages(library(x,character.only = T))
})