Home Comments Thread
New Thread

3 Comments

giscus-bot giscus-bot 2022-12-16 22:26:28
Guest *Peter* @ 2012-06-05 19:45:13 originally posted:

Perhaps I don't understand everything that knitr does, but it seems like org-babel solves many of the problems that knitr solves, but in a more generalized way in that it supports just about every programming language under the sun. I love that knitr is well-integrated with RStudio though. Not sure how easy it would be to embed elisp in RStudio in order to process org-babel directly.  

yihui yihui 2022-12-16 22:26:31

knitr is primarily focused on R, so I do not think org-babel solves problems as knitr does; there are many R-specific features like syntax highlighting with the highlight package, code reformatting with the formatR package, cache with lazyLoad(), support to a wide range of graphics devices, multiple plots per chunk, code evaluation based on the evaluate package... Basically you program at the R level in knitr.

knitr is able to support all programming languages as well, but obviously I do not know all languages, so I leave it to the users to define how to run other languages if they want to: http://yihui.name/knitr/demo/engines/

Originally posted on 2012-06-06 14:48:46

giscus-bot giscus-bot 2022-12-16 22:26:29
Guest *M. Edward (Ed) Borasky* @ 2012-07-30 04:51:38 originally posted:

Org-mode would be great if I knew Emacs. But I don't. ;-)

giscus-bot giscus-bot 2022-12-16 22:26:30
Guest *Charles Berry* @ 2012-08-08 00:13:21 originally posted:

Anyone interested in using org-mode and knitr in parallel can take a look at ravel.org on https://github.com/chasberry/orgmode-accessories.

ravel uses the new orgmode export engine (which supports various backend formats) to derive new backends that inherit most of the functionality of the parent backend.

Currently, ravel will turn an *.org file or a subtree in an org file into *.Rnw, *.Rhtml, and *.brew.

It is a WIP, so help and suggestions are welcome.

The README there explains why I bothered to do this.

ravel.org itself has notes on how to add other backend formats.

yihui yihui 2022-12-16 22:26:32

Oh yes, that is what I was hoping for. I'll add the link to this page. Thanks!

Originally posted on 2012-08-08 05:46:10

Sign in to join the discussion

Sign in with GitHub