R environment construction with Jupyter (formerly IPython notebook) (on OS X El Capitan 10.11.3)

http://qiita.com/tanemaki/items/7c74b35505dc372bc9c6 After seeing this, I tried and errored to create an environment where R can be used on Ipython Notebook without "Gonyogonyo". This is the first post.

IPython Notebook seems to be Jupyter that supports other languages.

Setting environment

MacOS X El Capitan (10.11.3) Python (2.7.11) environment created by pyenv install anaconda-2.3.0 R (3.2.2)

trial and error

Follow the default installation instructions on Mac OS X while reading R kernel for Jupyter.

Launch R in Terminal,

> install.packages(c('repr', 'IRkernel', 'IRdisplay'), repos = c('http://irkernel.github.io/', getOption('repos')))



 Then
````> ---Choose a cran mirror site for use in this session--- ````

 Is displayed and XQuartz starts up, so select CRAN mirror.
 I chose my favorite mirror (Japan (Tokyo) [https], etc.) and OK, but


#### **` lazy loading failed for package 'IRkernel' ``**
````> error


 : persevere: Could not install.
 Since rzmq is set in other versions, it seems that you have to install by referring to "SOURCE" instead of "BINARY".
 (See; http://irkernel.github.io/installation/)

# Creating an IR kernel environment
 I'm using Homebrew so in Terminal
````$ brew install zmq ````
 Then launch R,

install.packages(c('rzmq','repr','IRkernel','IRdisplay'), repos = c('http://irkernel.github.io/', getOption('repos')), type = 'source')

 Select your favorite CRAN mirror as described above. After installation


#### **``> IRkernel::installspec()``**
```


 Set the R kernel to work inside Jupyter. Exit R with `> q ()` and then at terminal

````$ jupyter notebook````

 Success if R appears in New.





Recommended Posts

R environment construction with Jupyter (formerly IPython notebook) (on OS X El Capitan 10.11.3)
Build an environment with pyenv, pyenv-virtualenv, jupyter on OS X El Capitan
Build a python environment with pyenv (OS X El Capitan 10.11.3)
Install matplotlib on OS X El Capitan
GeoDjango + SQLite environment construction on OS X
Analytical environment construction with Docker (jupyter notebook + PostgreSQL)
Installing TensorFlow 0.11.0rc2 on OS X El Capitan (10.11.6)
Virtual environment construction with Docker + Flask (Python) + Jupyter notebook
Data analysis environment construction with Python (IPython notebook + Pandas)
EC2 provisioning with Vagrant + Jupyter (IPython Notebook) on Docker
[Windows] [Python3] Install python3 and Jupyter Notebook (formerly ipython notebook) on Windows
Pepper-kun remote control environment construction with Docker + IPython Notebook
Play with Jupyter Notebook (IPython Notebook)
Python environment construction on Mac (pyenv, virtualenv, anaconda, ipython notebook)
Using NAOqi 2.4.2 Python SDK on Mac OS X El Capitan
Formatting with autopep8 on Jupyter notebook
Easy Jupyter environment construction with Cloud9
Build IPython Notebook environment with boot2docker
Mac OS X Mavericks 10.9.5 Development environment construction
Mac OS X Yosemite 10.10 Development environment construction
Mac OS X development environment construction memo
Rich cell output with Jupyter Notebook (IPython)
I installed Pygame with Python 3.5.1 in the environment of pyenv on OS X
Run Qiita API v2 Python wrapper in Python3 environment (Mac OS X 10.11 (El Capitan))
Enable Jupyter Notebook with conda on remote server
Try using conda virtual environment with Jupyter Notebook
[0] TensorFlow-GPU environment construction built with Anaconda on Ubuntu
Mac OS X Mountain Lion 10.8.5 Development environment construction
Graph drawing with jupyter (ipython notebook) + matplotlib + vagrant
When import tkinter is not possible on Mac OS X 10.11.3 (El Capitan) + pyenv + Python 3.5.1.
Building an environment for "Tello_Video" on Mac OS X
Monitor the training model with TensorBord on Jupyter Notebook
How to install caffe on OS X with macports
Build a Python development environment on Mac OS X
Install PyQt5 with homebrew on Mac OS X Marvericks (10.9.2)
Create a Python development environment on OS X Lion
Steps to install the latest version of OpenCV on OS X El Capitan without Homebrew
Jupyter is coming in with great momentum, so be prepared for you (IPython Notebook + R)
I installed Caffe so that I can do deep learning on MAC OS X El Capitan
OpenJTalk on Windows10 (Speak Japanese with Python from environment construction)
Machine learning with Jupyter Notebook in OCI Always Free environment (2019/12/17)
Install Jupiter Notebook on Windows with pip in proxy environment
Build a python data analysis environment on Mac (El Capitan)
I want to use a virtual environment with jupyter notebook!
Write charts in real time with Matplotlib on Jupyter notebook
Try clustering with a mixed Gaussian model on a Jupyter Notebook
How to install Theano on Mac OS X with homebrew
Environment construction procedure for the gym "Open AI Gym" that trains AI in games on Mac OS X
How to quickly create a machine learning environment using Jupyter Notebook on macOS Sierra with anaconda