R: is there something like iPython notebook (jupyter) for R?

20,814

Solution 1

Have a look at Ramnath's R notebook:

http://www.youtube.com/embed/3niqZhc_Nbo

And here's the GitHub: https://github.com/ramnathv/rNotebook

EDIT (1/6/15)

I think the new editR package is what you're after

https://github.com/swarm-lab/editR

Solution 2

Not sure it would be an exact equivalent of iPython's notebooks, but you can use knitr to make literacy programming in R, by inserting code chunks inside a document. If you use a format like RMarkdown, you can export the document and the result of the code chunks to HTML. You can then publish the HTML file somewhere, or use sites like Rpubs. This process is quite straightforward if you use the RStudio IDE.

Another way, if you are an Emacs user, is to use org-mode and its extension org-babel.

Finally, you should be able to create more dynamic things with a framework like shiny. See for example the following knitr demo from the shiny library :

R> library(shiny)
R> demo("notebook", package = "knitr")
Share:
20,814
andilabs
Author by

andilabs

Andrzej Kostanski always open for cooperation. See my cv: http://andilabs.com/cv/cv.pdf experienced backend engineer working mostly with python based stacks. founder of Andilabs Python dev shop from Warsaw, Poland http://andilabs.com/ after hours I am a big fan of an active lifestyle and triathlon 🏊🚴🏃 http://anditriathlon.com

Updated on July 09, 2022

Comments

  • andilabs
    andilabs almost 2 years

    As mentioned in question is there something like iPython's notebook (jupyter) for R-CRAN?

  • Outlier
    Outlier almost 10 years
    He is looking for a Markdown type solution where he can punblish the work too, not an environment like eclipse.
  • Szabolcs
    Szabolcs almost 10 years
    This totally misses the mark on what a notebook is. It is just for producing pretty looking documents, but it doesn't provide a way to work interactively (as an alternative to the command line)
  • Szabolcs
    Szabolcs almost 10 years
    @TylerRinker I did arrive here by searching for IPython for R. The project you link to is not an alternative to IPython, despite the claims of its author (who seems to be confused about what a notebook interface is). "rNotebook" appears to be focused on embedding R code (and its result) in a document, i.e. creating a report/presentation. It is not about working interactively, which is the main purpose of notebook interfaces, including both Mathematica (the system pioneering the notebook interface), and IPython (whose notebook is inspired by Mathematica).
  • Tyler Rinker
    Tyler Rinker over 9 years
    @Szabolcs Does editR suit you moreso?
  • Szabolcs
    Szabolcs over 9 years
    It also looks like a report generation tool, focused on creating pretty documents. It's not a notebook in the sense how Mathematica, IPython, or even MATLAB's Cell mode works. IPython now has some support for R, which is the only proper R notebook that I have seen.
  • Tyler Rinker
    Tyler Rinker over 9 years
    Can you give a link for a demo/video of what you're defining as a notebook? I ask because it seems editR does this: ipython.org/notebook.html Though the output is side by side rather than under, though instant.