RStudio install error in Anaconda? Use Conda instead.
This article is not related to Japanese manga at all.
Prologue: Idea of using RStudio
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-essentialsPress Enter.
Proceed([y]/n)?To this question,
Proceed([y]/n)? ysay yes and press Enter. Then R is installed.
AnacondaへのRStudioのインストール
Trouble
Installing RStudio by(base)C:¥Users¥Admin>conda install -c r Rstudiothis command does not work as
Proceed([y]/n)?this message does not show up.
The first article was saying that
I actually tried four or five times, butExecuting "conda install" just once is not enough.
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 anacondawas executed. Following that,
(base)C:¥Users¥Admin>conda update --allThis works. Reboot Anaconda Prompt, type
(base)C:¥Users¥Admin>conda install -c r Rstudioand 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
- Anaconda Navigator cannot install R
- RStudio installing tends to be failed even through Anaconda Prompt
- "conda install anaconda" and "Conda update --all" are magic words