Archives

Categories

CentOS 7 平台安装R 环境

本文档在CentOS 7 环境测试

1 下载R wget https://cran.r-project.org/src/base/R-3/R-3.4.1.tar.gz 2 编译R tar xzvf R-3.4.1.tar.gz cd R-3.4.1 ./configure –prefix=$PWD –enable-R-shlib –with-tcltk -with-tcl-config=/usr/lib64/tcl8.5/tclConfig.sh –with-tk-config=/usr/lib64/tkConfig.sh make -j make install

几点注意:

安装 tcl/tk 开发环境 sudo yum install tcl tcl-devel tk tk-devel 添加编译选项 –enable-R-shlib 可以支持其它语言和R进行交互,比如rpy2 3 添加环境变量及其镜像

设置环境变量:

export PATH=/biostack/tools/devtools/R-3.4.1/bin:$PATH

设置镜像:

永久设置CRAN镜像, 镜像汇总 http://cran.r-project.org/mirrors.html , 方法参考 Stackoverflow: Set default CRAN mirror permanent […]

cowplot:基于ggplot的可视化系统

GitHub 主页:

https://github.com/wilkelab/cowplot

CRAN 包地址:

http://cran.r-project.org/web/packages/cowplot/index.html

包描述:

The cowplot package is a simple add-on to ggplot2. It is meant to provide a publication-ready theme for ggplot2, one that requires a minimum amount of fiddling with sizes of axis labels, plot backgrounds, etc. Its primary purpose is to give my students and postdocs an easy way […]