R: is there something like iPython notebook (jupyter) for R?
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")
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, 2022Comments
-
andilabs almost 2 years
As mentioned in question is there something like iPython's notebook (jupyter) for R-CRAN?
-
Jilber Urbina over 10 yearsWhat about Knitr and Rstudio??
-
Vincent Zoonekynd over 10 years
-
Ben about 10 yearsYes, there is a quick and dirty R kernel for IPython by the IPython author and a more substantial R kernal for IPython here, as well as RCloud which aims to be very similar to IPython, providing a notebook interface to R
-
Ben over 9 yearsYes, iPython has evolved into the Jupyter Project, which fully supports interactive iPython-style notebooks for Python, R and Julia. There is a test-drive server here: tmpnb.org
-
Khashaa over 9 yearsThere is also the beaker notebook sharing.beakernotebook.com/gist/anonymous/a119ba0126f280b2d041
-
userJT over 7 yearsIn 2016, RStudio developers developed R Notebook format. See rmarkdown.rstudio.com/r_notebooks.html
-
A T over 7 yearsCurrent solution: irkernel.github.io
-
-
Outlier almost 10 yearsHe is looking for a Markdown type solution where he can punblish the work too, not an environment like eclipse.
-
Szabolcs almost 10 yearsThis 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 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 over 9 years@Szabolcs Does editR suit you moreso?
-
Szabolcs over 9 yearsIt 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 over 9 yearsCan 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.