emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Erik Iverson <eriki@ccbr.umn.edu>
To: Eric Schulte <schulte.eric@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: [org-babel] suggestions for using tikz() graphic device with org-babel-R
Date: Wed, 14 Apr 2010 09:46:41 -0500	[thread overview]
Message-ID: <4BC5D551.9040901@ccbr.umn.edu> (raw)
In-Reply-To: <87y6gqf6yj.fsf@gmail.com>


> 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

      reply	other threads:[~2010-04-14 14:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-14  6:07 [org-babel] suggestions for using tikz() graphic device with org-babel-R Austin Frank
2010-04-14 14:24 ` Eric Schulte
2010-04-14 14:46   ` Erik Iverson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4BC5D551.9040901@ccbr.umn.edu \
    --to=eriki@ccbr.umn.edu \
    --cc=emacs-orgmode@gnu.org \
    --cc=schulte.eric@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).