From mboxrd@z Thu Jan 1 00:00:00 1970 From: Henning Redestig Subject: org babel and alternative output file when using +call Date: Wed, 27 Oct 2010 11:38:00 -0300 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from [140.186.70.92] (port=41514 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PB79U-00048a-Fu for emacs-orgmode@gnu.org; Wed, 27 Oct 2010 10:39:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PB78c-00033w-DJ for emacs-orgmode@gnu.org; Wed, 27 Oct 2010 10:38:52 -0400 Received: from mail-ww0-f41.google.com ([74.125.82.41]:58395) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PB78c-00033f-7a for emacs-orgmode@gnu.org; Wed, 27 Oct 2010 10:38:02 -0400 Received: by wwb13 with SMTP id 13so40324wwb.0 for ; Wed, 27 Oct 2010 07:38:00 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Dear list, When I do #+source: test(myarg="blabla") #+begin_src R :session :file test.pdf plot(1:10, main=myarg) #+end_src I get the expected result: #+results: test [[file:test.pdf]] but if I later do #+call: test(myarg="hiho") :file test2.pdf I still get a file named according to the header argument specified in the original source block: #+results: test(myarg="hiho") [[file:test.pdf]] instead of what I hoped for: #+results: test(myarg="hiho") [[file:test2.pdf]] Is this intended? I think it would be very useful if I could change the file name in '+calls' like this to get different plots for different arguments. Using: GNU Emacs 23.1.50.1 (x86_64-pc-linux-gnu, GTK+ Version 2.18.0) of 2009-09-27 on crested, modified by Debian Org-mode version 7.01trans Best regards, -- /Henning Redestig Metabolome Informatics Unit | Yokohama RIKEN Plant Science Center