1. Install conda
1.1 查看最新版本的下载链接,使用wget获取
wget https://repo.anaconda.com/archive/Anaconda3-5.3.1-Linux-x86_64.sh
1.2 利用bash安装,按回车或yes知道安装完成
bsh Anaconda3-5.3.1-Linux-x86_64.sh
1.3 添加conda到系统路径
export PATH="/home/Zhangxiao/anaconda3/bin:$PATH"
1.4 check是否安装成功
conda --version
2. Install R
2.1 An updated R version (>=4.0) is available through the conda-forge channel, so first add the channel.
conda config --add channels conda-forge
2.2 Check whether an updated R version is added in the conda search space or not.
conda search r-base
2.3 Install R
conda create -n r-4.0.0 r-base=4.0.0
2.4 Activate the newly create conda environment
source activate r-4.0.0
2.5
conda deactivate # 退出当前环境
conda remove --name r-4.0.0 --all #移除R4.0.0环境