Skip to content

Commit

Permalink
Added instructions for running R code in IPython notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
amitsaha committed Nov 13, 2015
1 parent 4bad4ea commit 3113092
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions guide/R_programming.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,25 @@ which can be used to seek help on R.

`rkward <http://sourceforge.net/apps/mediawiki/rkward/>`__ - a GUI for
R is also installed.


R development in Jupyter
========================

Using `IRkernel <http://irkernel.github.io/>`__, you can run your R code in `Jupyter notebooks <http://jupyter.org/>`__. First, you will have to install the ``czmq-devel`` package using ``dnf -y install czmq-devel`` from the terminal.

Then start the ``R`` interactive shell from the terminal (``$R``) and as per the `install instructions <http://irkernel.github.io/installation/>`__, do:

.. code::
> install.packages(c('rzmq','repr','IRkernel','IRdisplay'),
repos = c('http://irkernel.github.io/', getOption('repos')),
type = 'source')
Once that completes, run the following:

.. code::
> IRkernel::installspec()
Now, start the Jupyter notebook server using ``ipython3 notebook`` and you will be able to select the ``R`` kernel.

0 comments on commit 3113092

Please sign in to comment.