R包的4种安装方式
- 在线安装
> install.packages("包名")
- 安装bioconductor的包
> source("http://bioconductor.org/biocLite.R")
> biocLite("包名")
- 离线安装
>download.file("http://bioconductor.org/packages/release/bioc/src/contrib/BiocInstaller_1.20.1.tar.gz","BiocInstaller_1.20.1.tar.gz")
> install.packages("BiocInstaller_1.20.1.tar.gz", repos = NULL)
- 命令安装
# wget http://www.bioconductor.org/packages/release/bioc/src/contrib/EnhancedVolcano_1.4.0.tar.gz
# R CMD INSTALL EnhancedVolcano_1.4.0.tar.gz
修改R包的加载路径
export R_LIBS=~/R/x86_64-redhat-linux-gnu-library/3.5/:~/R/x86_64-redhat-linux-gnu-library/3.5.0
网友评论