Dmitri Korof
Dmitri Korof

Reputation: 31

Installing R Studio with Anaconda

I tried to install R Studio (version 1.1.456) using the anaconda navigator by simply clicking on the install button. It was taking more than an hour, so I just figured it should be stuck. I then tried to install it through the anaconda prompt but now it has also been stuck for around 30 minutes here:

enter image description here

What can I do to get around this?

Thank you in advance!

Upvotes: 1

Views: 20819

Answers (2)

mfakaehler
mfakaehler

Reputation: 91

For various reasons up-to-date RStudio versions are not availabe on any conda channel I know. @merv's answer is the easiest solution, if you are happy to work with an older version of rstudio. Here is another suggestion, where you install RStudio outside of conda, but configure it to use a particular R installation, which is maintained in your custom conda environment. Step by step, this is how you procede:

  1. Install the latest RStudio from the official sources

  2. Create your custom conda environment CUSTOMENV, including an installation of r-base

    conda create -n CUSTOMENV -c conda-forge r-base'>=4.0.0' ... [further packages]
    
  3. Activate the conda environment

    conda activate CUSTOMENV
    
  4. Start RStudio from console

    rstudio &
    

Upvotes: 7

merv
merv

Reputation: 77098

Important Note: I strongly endorse @mfakaehler's answer since all RStudio builds on Conda have effectively been abandoned. Install RStudio natively and launch from activated environment.


Create a new env instead. E.g.,

conda create --name rstudio_env -c r rstudio

Best practice for Conda is to create new envs for each project rather than using a monolithic base env. Generally, I find that the less one installs in base the better their experience with Conda will be.

Upvotes: 5

Related Questions