R 及远程服务

远程服务

### 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(待补充)

预装插件
##### 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") #内存需求
BiocManager::install("ChIPseeker")      #内存需求

你可能感兴趣的:(R 及远程服务)