R in conda environment displays version 3.6.1 rather than 4.1.3

Question:

conda-forge screenshot

On my anaconda prompt, using these conda-forge packages to install r-base, i was expecting that when creating the environment i’ll see r-base version 4.1.3 but instead it displays that the highest version of r available on my windows is version 3.6.1 as in the second screenshot. Please i’ll need some help or pointers to where i might have gotten it wrong screenshot of anaconda environment

Asked By: Eddie

||

Answers:

The first screenshot is from conda-forge, which is a repository that is not being searched by default. The highest available version in the default repositories is 3.6. You need to add conda-forge as a channel to the environment, but I’m not sure how that works in the GUI. In the anaconda prompt you can do this

conda config --add channels conda-forge

in an activated environment.

Also r and r-base are different packages.

Answered By: LukasNeugebauer