|
From: | Erik Iverson |
Subject: | Re: [Orgmode] [org-babel] suggestions for using tikz() graphic device with org-babel-R |
Date: | Wed, 14 Apr 2010 09:46:41 -0500 |
User-agent: | Thunderbird 2.0.0.23 (X11/20090812) |
But, back to your question. What does the R block return? - if it returns the path to a file, then you can use :results file to insert a link to that file in your org-mode buffer, or you can wrap the path to that file in an include with something like the following #+source: graph-generator #+begin_src R :results file ... #+end_src#+begin_src emacs-lisp :var path=graph-generator :results latex(format "input{%s}" path) #+end_src - if it returns raw LaTeX then you can use the :results latex header as used in the elisp block above
I just started looking at tikzDevice in R about two days ago. It is indeed a graphical device, just like X11, pdf, or postscript, so it doesn't return anything. It writes out a .tex file though, so you should be able to write a wrapper function that does return something useful for you.
--Erik
[Prev in Thread] | Current Thread | [Next in Thread] |