遠程服務(wù)
### Centos7
# 安裝R
sudo yum install epel-release
sudo yum install R
# R Studio service
wget https://download2.rstudio.org/server/centos7/x86_64/rstudio-server-rhel-1.4.1717-x86_64.rpm
sudo yum install rstudio-server-rhel-1.4.1717-x86_64.rpm
瀏覽器訪問8787端口日川,使用賬戶密碼登陸即可使用
# Shiny Service
sudo su - \
-c "R -e \"install.packages('shiny', repos='https://cran.rstudio.com/')\""
wget https://download3.rstudio.org/centos7/x86_64/shiny-server-1.5.16.958-x86_64.rpm
sudo yum install --nogpgcheck shiny-server-1.5.16.958-x86_64.rpm
### Ubuntu20.04
# 安裝R
sudo apt-get install r-base
# R Studio service
sudo apt-get install gdebi-core
wget https://download2.rstudio.org/server/bionic/amd64/rstudio-server-1.4.1717-amd64.deb
sudo gdebi rstudio-server-1.4.1717-amd64.deb
# Shiny Service
sudo su - \
-c "R -e \"install.packages('shiny', repos='https://cran.rstudio.com/')\""
sudo apt-get install gdebi-core
wget https://download3.rstudio.org/ubuntu-14.04/x86_64/shiny-server-1.5.16.958-amd64.deb
sudo gdebi shiny-server-1.5.16.958-amd64.deb
R packages(待補充)
預(yù)裝插件
##### Centos7
sudo yum install libxml2-devel
sudo yum install -y curl-devel
sudo yum install libjpeg-devel
sudo yum install openssl-devel
##### Ubuntu20.04
sudo apt-get install libxml2-dev
sudo apt-get install libcurl4-openssl-dev
包的安裝
getwd()
setwd("/home/xxxx/R/workspace")
rm(list=ls())
options(BioC_mirror="https://mirrors.tuna.tsinghua.edu.cn/bioconductor")
options("repos" = c(CRAN="https://mirrors.tuna.tsinghua.edu.cn/CRAN/"))
if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install(c("DESeq","DESeq2","clusterProfiler","org.Hs.eg.db","pathview","DOSE","org.At.tair.db"))
install.packages(c("openxlsx","tidyverse","lubridate","pheatmap","VennDiagram"))
#單個安裝叹话,備選
BiocManager::install("EnhancedVolcano")
BiocManager::install("org.At.tair.db")
BiocManager::install("org.Hs.eg.db")
BiocManager::install("pathview")
BiocManager::install("DESeq2")
BiocManager::install("DESeq")
BiocManager::install("DOSE")
BiocManager::install("GO.db")
install.packages("VennDiagram")
install.packages("tidyverse", dependencies=TRUE, INSTALL_opts = c('--no-lock'))
install.packages("lubridate")
install.packages("openxlsx")
install.packages("pheatmap")
BiocManager::install("clusterProfiler") #內(nèi)存需求
BiocManager::install("ChIPseeker") #內(nèi)存需求