RStudio install error in Anaconda? Use Conda instead.

RStudio install error in Anaconda? Use Conda instead.


 This article is not related to Japanese manga at all.


Prologue: Idea of using RStudio

Yesterday, an idea of using RStudio occurred in my head. So, I clicked "Install" button on Anaconda Navigator, but it did not work.

https://qiita.com/_ss939/items/a44fc0ecb29f9fac5243 (Japanese)


This article taught me that Anaconda Navigator was not a good choice.


How to Download & Install R, RStudio, Anaconda on Mac or Windows


Then I learnt how to install R and RStudio through Anaconda Prompt from this article. My condition was:

  • Anaconda: Installed
  • R: Not installed
  • RStudio: Not installed


I began with R installing at first. Following is the way to install R and RStudio to already installed Anaconda.


Installing R to Anaconda

From Windows Start Menu, launch Anaconda Prompt.

(base)C:¥Users¥Admin>conda install r-essentials

Press Enter.

Proceed([y]/n)?

To this question,

Proceed([y]/n)? y

say yes and press Enter. Then R is installed.

AnacondaへのRStudioのインストール

Trouble

Installing RStudio by

(base)C:¥Users¥Admin>conda install -c r Rstudio

this command does not work as

Proceed([y]/n)?

this message does not show up.
The first article was saying that
Executing "conda install" just once is not enough.
I actually tried four or five times, but 

Proceed([y]/n)?

did not come up. Rebooting Anaconda Prompt and OS did not work.


Tips for success installing

Then I referred to another article.

(base)C:¥Users¥Admin>conda install anaconda

was executed. Following that, 

(base)C:¥Users¥Admin>conda update --all

This works. Reboot Anaconda Prompt, type
(base)C:¥Users¥Admin>conda install -c r Rstudio

and press Enter, then installing will start.

Proceed([y]/n)?

say yes and you will get installed RStudio.

Confirming if installing successfully finished

Launch RStudio on Anaconda Prompt.

(base)C:¥Users¥Admin>rstudio

I confirmed launching from Anaconda Navigator and Windows Start Menu.

Conclusion

  1. Anaconda Navigator cannot install R
  2. RStudio installing tends to be failed even through Anaconda Prompt
  3. "conda install anaconda" and "Conda update --all" are magic words

人気の投稿 Popular post