How to install different versions of r, e.g. r 4.1.2 in a conda environment?

Question:

I want to be able to install higher versions of R in my conda environment. In particular r 4.1.2. I have also installed Mamba fyi.

Currently r-base has:

conda activate main
conda search r-base

Name                       Version           
r-base                         3.2.4              
r-base                         3.3.0              
r-base                         3.3.1              
r-base                         3.3.2              
r-base                         3.4.1              
r-base                         3.4.2      
r-base                         3.4.3               
r-base                         3.4.3      
r-base                         3.5.1      
r-base                         3.5.3      
r-base                         3.6.0     
r-base                         3.6.1      
r-base                         3.6.1
Asked By: MJ313

||

Answers:

You could specify the version directly:

mamba install -c conda-forge r-base=4.1.2

or

conda install -c conda-forge r-base=4.1.2

On Jul 25, 2022 the highest available in conda-forge was 4.1.3 while in pkgs/r 4.2.0 was the highest version available.

Answered By: missuse
Categories: questions Tags: , , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.