R 安装

centos 7

参考:https://my.oschina.net/u/2429108/blog/552977

下载安装 inconsolata.sty

#下载 :
wget http://mirrors.ctan.org/fonts/inconsolata.zip

#解压 :
unzip inconsolata.zip 
#将文件拷贝到目录下:

cp -Rfp inconsolata/* /usr/share/texmf/

 #刷新sty :
 mktexlsr

备注:这步解决configure: WARNING: neither inconsolata.sty nor zi4.sty found: PDF vignettes and package manuals will not be rendered optimally 警告

安装
下载R版本 https://cloud.r-project.org/src/base/R-3/

yum install -y gcc gcc-devel gcc-gfortran gcc-c++ readline-devel libXt-devel texinfo texlive tar unzip
yum install libpng-devel  libjpeg-devel  libtiff-devel  cairo-devel

./configure  --enable-R-shlib   --with-x --with-libpng --with-jpeglib --with-libtiff  --prefix=/opt/microsoft/ropen/3.5.1
make && make install

配置 Rstudio

vim /etc/rstudio/rserver.conf

rsession-which-r=/opt/microsoft/ropen/3.5.1/bin/R

ubuntu 14.04


./configure --prefix=/data1/exec/public/R-3.2.2 --with-readline=yes --with-libpng=yes --with-x=no --enable-R-shlib
make 
make install

出现问题
/usr/bin/install: cannot statNEWS.pdf': No such file or directory `
在这里我暂时没有管waring,而对于NEWS.pdf,我尝试在doc文件中新建一个同名文件。安装成功。最后在作Venn diagram的时候也没问题。[参考]
http://blog.csdn.net/theomarker/article/details/51010001
http://www.cnblogs.com/bourneli/p/3300887.html

LDFLAGS="-L/data1/exec/public/libs/zlib-1.2.11" CPPFLAGS="-I/data1/exec/public/libs/zlib-1.2.11/include"

http://pj.freefaculty.org/blog/?p=315

ubuntu 18.04

apt-get install software-properties-common
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
add-apt-repository 'deb https://mirrors.tuna.tsinghua.edu.cn/CRAN/bin/linux/ubuntu/  bionic-cran35/'
apt-get update
apt-get install r-base
apt-get install r-base-dev
apt-get clean all

添加R源

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9
gpg --keyserver keyserver.ubuntu.com --recv-key E084DAB9
gpg -a --export E084DAB9 | sudo apt-key add -
 add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/'

bionic-cran35/ 是ubuntu 18.04

Rtudio

改变默认R版本
vim /etc/rstudio/rserver.conf

rsession-which-r=/node6-data1/bin/R/3.6/bin/R

http://devopspy.com/linux/install-r-rstudio-centos-7/
https://www.rstudio.com/products/rstudio/download-server/

你可能感兴趣的:(R 安装)