emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [babel] ':file' argument does not work
@ 2011-07-22  9:36 Max Flöttmann
  2011-07-24 20:00 ` Eric Schulte
  0 siblings, 1 reply; 2+ messages in thread
From: Max Flöttmann @ 2011-07-22  9:36 UTC (permalink / raw)
  To: emacs-orgmode

Hi,
I'm working with org-mode and babel to write annotated R-scripts. I include a lot of code blocks that should write their graphics to a file.
I'm usually using the :file argument for that, but on my Mac this doesn't work anymore.

A code block like this:
#+begin_src R :file Y2011_M07_T11_h11_m14_s05_plot.pdf :session test
      plot.Data(data)
 #+end_src

Should be sent to the session 'test' and should be wrapped in the code to produce a pdf. This wrapping does not work.
The result is a link to the file, but the file is not produced. The session does not show the wrapper code either.

I'm using Aquamacs 2.2 and Org-mode version 7.6 (release_7.6.1.gc51d).
Does anybody know a fix for this?
Regards,

Max

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [babel] ':file' argument does not work
  2011-07-22  9:36 [babel] ':file' argument does not work Max Flöttmann
@ 2011-07-24 20:00 ` Eric Schulte
  0 siblings, 0 replies; 2+ messages in thread
From: Eric Schulte @ 2011-07-24 20:00 UTC (permalink / raw)
  To: Max Flöttmann; +Cc: emacs-orgmode

Max Flöttmann <max.floettmann@gmail.com> writes:

> Hi,
> I'm working with org-mode and babel to write annotated R-scripts. I
> include a lot of code blocks that should write their graphics to a
> file.
> 
> I'm usually using the :file argument for that, but on my Mac this
> doesn't work anymore.
>
> A code block like this:
> #+begin_src R :file Y2011_M07_T11_h11_m14_s05_plot.pdf :session test
>       plot.Data(data)
> #+end_src
>

Hi Max,

The following alternative, which includes the ":results graphics" header
argument, should work.

#+begin_src R :file Y2011_M07_T11_h11_m14_s05_plot.pdf :results graphics :session test
  plot.Data(data)
#+end_src

Best -- Eric

-- 
Eric Schulte
http://cs.unm.edu/~eschulte/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-07-24 20:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-22  9:36 [babel] ':file' argument does not work Max Flöttmann
2011-07-24 20:00 ` Eric Schulte

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).