微软增强了R base的计算能力,并开源为MRO(Microsoft R Open),本文讲述如何在Ubuntu上安装MRO
$ wget -c https://mran.blob.core.windows.net/install/mro/3.5.1/microsoft-r-open-3.5.1.tar.gz
$ tar -xf microsoft-r-open-3.5.1.tar.gz
$ cd microsoft-r-open/
$ sudo ./install.sh
# 按照屏幕上的提示进行操作
# 在Ubuntu 18.04及更高版本,需要手动安装libpng12
$ wget https://mirrors.kernel.org/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.54-1ubuntu1_amd64.deb
$ sudo dpkg -i libpng12-01_1.2.54-1ubuntu1_amd64.deb
自动化安装可以写为脚本install_mro.sh
wget -c https://mran.blob.core.windows.net/install/mro/3.5.1/microsoft-r-open-3.5.1.tar.gz
tar -xf microsoft-r-open-3.5.1.tar.gz
cd microsoft-r-open/
sudo ./install.sh -a
# 在Ubuntu 18.04及更高版本,需要手动安装libpng12
cd ../
wget -c https://mirrors.kernel.org/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.54-1ubuntu1_amd64.deb
sudo dpkg -i libpng12-01_1.2.54-1ubuntu1_amd64.deb
# 删除安装包
rm microsoft-r-open-3.5.1.tar.gz libpng12-0_1.2.54-1ubuntu1_amd64.deb
rm -rf microsoft-r-open/
其他系统的版本都可以在https://mran.microsoft.com/download上下载,安装参考指南https://mran.microsoft.com/documents/rro/installation