From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeremie Juste Subject: Babel save code block results to many files Date: Mon, 02 May 2016 22:08:36 +0200 Message-ID: <87k2jc9q9n.fsf@oldgnu.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53243) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axK9U-0008IM-Dq for emacs-orgmode@gnu.org; Mon, 02 May 2016 16:09:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1axK9I-0003lw-TU for emacs-orgmode@gnu.org; Mon, 02 May 2016 16:09:02 -0400 Received: from mail-wm0-x22d.google.com ([2a00:1450:400c:c09::22d]:37682) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axK9H-0003hX-K5 for emacs-orgmode@gnu.org; Mon, 02 May 2016 16:08:56 -0400 Received: by mail-wm0-x22d.google.com with SMTP id a17so4349566wme.0 for ; Mon, 02 May 2016 13:08:41 -0700 (PDT) Received: from oldgnu.org (crj95-2-82-236-75-241.fbx.proxad.net. [82.236.75.241]) by smtp.gmail.com with ESMTPSA id gg7sm32164363wjd.10.2016.05.02.13.08.36 for (version=TLSv1/SSLv3 cipher=OTHER); Mon, 02 May 2016 13:08:36 -0700 (PDT) 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" To: emacs-orgmode@gnu.org Hello, In the case where a code block generates many grahique, is it possible to output each graphic to a file direclty? For example in R you can do something like the following. png(file="example%02d.png", width=200, height=200) for (i in c(10:1, "G0!")){ plot.new() text(.5, .5, i, cex = 6) } dev.off() but the it seems that we don't have direct access to the png function in org-mode #+BEGIN_SRC R :results output graphics :file tmp.png for (i in c(10:1, "G0!")){ plot.new() text(.5, .5, i, cex = 6) } #+END_SRC Best regards, Jeremie