Quick Hit: Add R Support to Conda Environment/Jupyter Kernel

Only tested on OSX. Notes to add R Notebook support to your Conda Environment(s).

Conda is an environment/package manager, allowing you to separate your workspaces, e.g. one for python 2.x, one for python 3.x, one for R…etc.

1. If you haven’t, install Miniconda or Anaconda: http://conda.pydata.org/docs/install/quick.html

2. (recommended) Create a new environment for R Kernels

conda create -n jupyter_r -c r r-essentials

3. Switch to this environment

source activate jupyter_r

4. Install the R kernel (in R) (and make it available to jupyter)

>install.packages(c('repr', 'IRdisplay', 'evaluate', 'crayon', 'pbdZMQ', 'devtools', 'uuid', 'digest'))
>IRkernel::installspec(user = FALSE)

5. Fire up a notebook!

jupyter notebook

- select an R kernel (now available under the “new” menu).  Happy coding!