A, Anaconda installation
This article is based on the Linux operating system Ubuntu 16.04
Download Anaconda system: wget https://repo.anaconda.com/archive/Anaconda3-2019.10-Linux-x86_64.sh
Anaconda system installation: sh Anaconda3-2019.10-Linux-x86_64.sh
During installation, read and agree to have the agreement before installation. If the option appears, select "yes". In addition, the installation path can also be specified.
Second, based on the R version Installation Anaconda
Anaconda installation directory under 2.1 (usrnamePath / anaconda3 / bin /) bin directory, conda need to find instructions. Download and install the latest version based on the instruction of the R software package and
usrPath/anaconda3/bin/conda create -n r_env r-essentials r-base
R activation locale Anaconda 2.2 Environment. After activation, based on R Anaconda environment is used. At this time, R to R independently existing version of the operating system, the user's personal environment R operation.
usrPath/anaconda3/bin/conda activate r-environment
If you want to exit the R environment Anaconda environment, perform the following procedures:
usrPath/anaconda3/bin/conda deactivate
2.3 can be configured to your environment variables
we ~ / .bashrc
Add to:
alias Rconda='usrPath/anaconda3/bin/conda activate r-environment'
source ~/.bashrc
Next time you open that is enters into force, command line input Rconda open environment
Third, the common error
If the above-described problems such as errors, may be due not to anaconda added to the profile, as follows:
we ~ / .bashrc
In the end of the file add:
export PATH="/usrPath/anaconda3/bin:$PATH"
Entry into force:
source ~/.bashrc
Boot environment:
conda activate r-environment