R Notebooks
blog.rstudio.org
blog.rstudio.org
I've used RStudio more and more for my "quick check stats" like quickly calculating interrater reliability or whatever pops up (I only know the basics of R). As such I can totally see myself quickly sharing things with R Notebooks.
For everything that requires "plumbing" and/or actually uses stats in software I gravitate towards the Python toolchain. Might not make sense but that's how I work. I've also noticed that RStudio is accessible enough to non programmers for the same quick checks I run (converting over some SPSS users...yay?!).
Language wise you can use the following in knitr: We can use any languages in knitr, including but not limited to R. Here are some simple demos with Python, Awk, Ruby, Haskell, Bash, Perl, Graphviz, TikZ, SAS, Scala, and CoffeeScript, etc:
python.Rmd (output)
c.Rmd (output)
fortran.Rmd (output)
sql.Rmd (output)
awk.Rmd (output)
ruby.Rmd (output)
haskell.Rmd (output)
bash.Rmd (output)
perl.Rmd (output)
dot.Rmd (output)
tikz.Rmd (output)
sas.Rmd (output)
coffeescript.Rmd (output)
polyglot.Rmd (output)
Scala, Python, and Bash
Also glad Python works for you and it is an awesome choice. I would just recommend looking at dplyr tutorial for the "plumbing." you might keep to your Python but this is an awesome workflow. https://cran.rstudio.com/web/packages/dplyr/vignettes/introd...2) Code Execution is all at once or in chunks in R Notebooks. So I can do everything in batches. I do this so I can loop through 13 reports all pointing to one certain group of persons.
3) Works as a script out of the box and you don't have to change the format of your code.
4) Output. In R Notebooks I can output to HTML, PDF, Word/Libre Office or a dozen other formats with one line of code. I can have it in all formats at once. Because it all in one R Markdown file.
What's the difference?
Most plotting libraries output MBs of HTML/Javascript, that would be a mess in git. How does R Notebooks handle this?
so if i want to send my notebook to someone and include my results, i have to send two files? or is there one file per output, per directory, or per user?
Sharing the Notebook for them to reproduce your results is just one text file of the RMarkdown file.
For the best of both worlds, org-mode takes the revisionable approach of R Notebooks, but supports just about any language you could want. Org-mode simply requires turning on inline preview to duplicate the functionality of R notebooks.
Also, org-mode as a markup format supports some important features such as cross-references that are unsupported by RMarkdown.
Org-mode is the oldest of these three notebooks, yet is the most full-featured. If anything, the fact that you can do so very, very much more with org-mode is probably why it's the least popular. That and being tied to emacs in the same way that R notebooks is tied to RStudio.
Nevertheless, I have to wonder if we all wouldn't have been better off building a non-emacs implementation of org-mode rather than Jupyter and R Notebooks.
The ability to visualize your code and the output, with the intermediary steps all along if you want or need, is extremely helpful.
And I can just email the html notebook itself to anyone who needs to check the steps: the notebook easily outputs to HTML (which I can save to PDF on a webbrowser if I don't want to output to PDF directly, which requires installing gigabytes of latex files and fonts)
I believe research should be done this way: fully reproductible and transparent, text, methods and data, all included in one file.