3 ms·
Using knitr and pandoc to create reproducible scientific reports
- davecap1 12y agoIs there something like this for Python, other than iPython notebooks? edit: just found a couple if anyone is interested (https://github.com/AndreasHeger/CGATReport https://github.com/AndreasHeger/CGATReport, http://mpastell.com/pweave/ http://mpastell.com/pweave/, https://github.com/stdbrouw/python-literate https://github.com/stdbrouw/python-literate)
- tincholio 12y agoYou can use org-babel with Python as well.
- z0r 12y agoI've been learning to use org-babel to accomplish similar things recently - http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-gnuplot.html http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-g... My workflow is crude, but org-babel lets me capture the process of selecting elements from a raw dump of json to csv with a block of shell script (invoking jq), post-processing the output with a block of python and then passing the results into blocks of gnuplot to generate graphs. I believe org-babel has support for R among many other languages, so you can include snippets of nearly anything in your report generating pipeline. It is pretty nifty!
- Mikeb85 12y agoKnitr is super cool, I've used it for a few small projects now. Also love how R-Studio integrates it. R Studio, along with the greater R ecosystem, is by far the nicest programming environment I've ever used (although it is somewhat specialized - excels mainly in dealing with data as opposed to creating apps).
- jgalt212 12y agoThis is great stuff. Obviously, reproducible research is one of the keys, if not the linchpin, to scientific advancement. Where I think knitr/pandoc really fills a void is increasing the chances a citizen scientist can have real impact. If some Joe Schmo off the street publishes original research, it's likely to be dismissed by the establishment. However, if Joe's research is easily testable, his/her proposed advancements are more likely to be entered into the world's body of knowledge. In the end all of us will benefit, and at a faster rate.