You can find it here - https://docs.conda.io/en/latest/miniconda.html#linux-installers
export PATH="/home/ubuntu/miniconda3/bin/:$PATH"
conda create -n r anaconda
conda activate r
If you are having issues activating your R environment try the following
source /home/ubuntu/miniconda3/etc/profile.d/conda.sh
Solution was found here - conda/conda#7980
Once you activate your r environment do which R
and you will see that you have R installed. But what if you want to change the R version?
conda search r-base
Then choose the verison you want:
conda install -c r r=3.6.0