Anconda R version - How to upgrade to 4.0 and later I use R through the anaconda navigator, which manages all my package installations. I need to use qgraph for a project, which is dependent on mnormt library, which in turn needs RStudio verion &gt;4.0
I think the solution to my problem would be to upgrade Anaconda R to the latest R version, but the r-base search in conda has no R version greater than 3.6. Any help in upgrading Anaconda R to newer versions would be very useful.
The problem is in installing qgraph, which stops with errors in installing dependencies (pysch)
During startup - Warning messages:
1: Setting LC_CTYPE failed, using &quot;C&quot; 
2: Setting LC_TIME failed, using &quot;C&quot; 
3: Setting LC_MESSAGES failed, using &quot;C&quot; 
4: Setting LC_MONETARY failed, using &quot;C&quot; 
Error: .onLoad failed in loadNamespace() for 'mnormt', details:
  call: library.dynam(&quot;mnormt&quot;, pkg, library)
  error: shared object 'mnormt.dylib' not found
Execution halted
ERROR: lazy loading failed for package 'psych'
You need to create a new environment and then you can install R 4.+ in Anaconda. Follow these steps.
conda create --name r4-base


After activating r4-base run these commands
conda activate r4-base
conda install -c conda-forge r-base
conda install -c conda-forge/label/gcc7 r-base

Finally, you will notice r-basa version 4 will be installed.

Thereafter, you can install any supported packages. But with this only, you won't have the ability to use it in the Jupyter notebook. You need to install install.packages('IRkernel') and Jupyter notebook as well if you want to use it. Otherwise you are good to go with R-Studio.
For Jupyter Installation and RKernel.
conda install jupyter

Then open the R console. Write in R console
install.packages('IRkernel')
IRkernel::installspec()

Congrats! You can use Notebook for Python and R.