[PYTHON] R in Anaconda (in Ubuntu 14.04)

Motivation

Normally, machine learning is all about Python, but recently [Minna no R](http://www.amazon.co.jp/%E3%81%BF%E3%82%93%E3%81%AA%E3%81 % AER-% E3% 83% 87% E3% 83% BC% E3% 82% BF% E5% 88% 86% E6% 9E% 90% E3% 81% A8% E7% B5% B1% E8% A8% 88% E8% A7% A3% E6% 9E% 90% E3% 81% AE% E6% 96% B0% E3% 81% 97% E3% 81% 84% E6% 95% 99% E7% A7% 91% The book E6% 9B% B8-Jared-P-Lander / dp / 4839955212) was a hot topic, and I thought I would study R once in a while. I bought the Kindle version of R for Everyone, which is the original work of Minna no R [^ 1] ], Then I started to build the environment for R.

I'm not very familiar with R, but in the case of Ubuntu, you can enter it with ʻapt-get. I used to do this, but when I install other libraries, I don't like it because the build usually runs when I try to put something that isn't in the repository with R'package.install. So I remembered that Anaconda, which is always indebted to me in Python, recently supported R [^ 2], and I actually tried it.

[^ 1]: This is cheaper

R installation

$ conda create -n R python=3
$ conda install -n R -c r r

only this. To run it, either enable this conda environment or hit the directly installed R.

You can also use Anaconda's repository in addition to installing the library with package.install.

$ conda install -n R -c r r-ggplot2

RStudio installation

I installed the official deb file and started it, but I got angry when R was not found. The Linux version seems to use the result of which R, so I could deal with it by putting the R link of conda in / usr / local / bin / R for the time being.

Recommended Posts

R in Anaconda (in Ubuntu 14.04)
Python 3.3 in Anaconda
Beep in Python (Ubuntu)
Use Anaconda in pyenv environment
Try using Spyder included in Anaconda
Run shell command / python in R
Steps to install Ubuntu in VirtualBox
How to update Spyder in Anaconda
Put python, numpy, opencv3 in ubuntu14
Install scrapy in python anaconda environment
Various Anaconda settings in Windows 10 environment
install tensorflow in anaconda + python3.5 environment
Hashing data in R and Python
anaconda
Fix setuptools missing error in anaconda
Disk-related commands often used in Ubuntu (memories)
How to do R chartr () in Python
The result of installing python in Anaconda
I put Linux (Ubuntu) in VAIO SX14.
When the target is Ubuntu 16.04 in Ansible
R: Use Japanese instead of Japanese in scripts
tensorflow does not enter in windows + anaconda.
Install rJava on Linux in R3.6 environment.
Creating a virtual environment in an Anaconda environment
Introduction to docker Create ubuntu environment in ubuntu
[mac] Install R in pyenv + Jupyter-Lab environment
(Not yet) Don't put Ubuntu 20.04 in WSL1