From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: [babel] ':file' argument does not work Date: Sun, 24 Jul 2011 14:00:55 -0600 Message-ID: <87bowj5tzc.fsf@gmail.com> References: <867A8532-0A25-4028-BBC8-71E07E54FCBE@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:37946) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ql4rI-0004u7-Dm for emacs-orgmode@gnu.org; Sun, 24 Jul 2011 16:01:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ql4rH-0005qW-6b for emacs-orgmode@gnu.org; Sun, 24 Jul 2011 16:01:04 -0400 Received: from mail-gx0-f169.google.com ([209.85.161.169]:47661) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ql4rH-0005qS-3f for emacs-orgmode@gnu.org; Sun, 24 Jul 2011 16:01:03 -0400 Received: by gxk23 with SMTP id 23so2185634gxk.0 for ; Sun, 24 Jul 2011 13:01:01 -0700 (PDT) In-Reply-To: <867A8532-0A25-4028-BBC8-71E07E54FCBE@gmail.com> ("Max =?utf-8?Q?Fl=C3=B6ttmann=22's?= message of "Fri, 22 Jul 2011 11:36:14 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Max =?utf-8?Q?Fl=C3=B6ttmann?= Cc: emacs-orgmode@gnu.org Max Fl=C3=B6ttmann 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. >=20 > 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 :s= ession test plot.Data(data) #+end_src Best -- Eric --=20 Eric Schulte http://cs.unm.edu/~eschulte/