From mboxrd@z Thu Jan 1 00:00:00 1970 From: Noorul Islam K M Subject: Re: #+call ? Date: Mon, 01 Nov 2010 11:10:37 +0530 Message-ID: <871v75wqi2.fsf@noorul.maa.corp.collab.net> References: <99BCF852-FBBA-4509-8DEC-88C0B83D302A@tsdye.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=48133 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PCnAE-0000rR-3c for emacs-orgmode@gnu.org; Mon, 01 Nov 2010 01:42:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PCnAC-0000UJ-4y for emacs-orgmode@gnu.org; Mon, 01 Nov 2010 01:42:37 -0400 Received: from mail-gy0-f169.google.com ([209.85.160.169]:54201) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PCnAC-0000U8-28 for emacs-orgmode@gnu.org; Mon, 01 Nov 2010 01:42:36 -0400 Received: by gyh20 with SMTP id 20so3636784gyh.0 for ; Sun, 31 Oct 2010 22:42:34 -0700 (PDT) In-Reply-To: <99BCF852-FBBA-4509-8DEC-88C0B83D302A@tsdye.com> (Thomas S. Dye's message of "Sun, 31 Oct 2010 17:44:21 -1000") 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: "Thomas S. Dye" Cc: Org Mode "Thomas S. Dye" writes: > Aloha all, > > I'm expecting to see the file bar.pdf output. > > #+srcname: single-date > #+begin_src R :results output :file foo.pdf > library(ggplot2) > z <- read.csv(file = x) > g <- ggplot(z, aes(x=1950 + cal.BP, y=Posterior.probability)) > g + geom_bar(stat='identity') + xlab("Year AD") + > ylab("Probability") > #+end_src > > #+call: single-date(x="alpha-2.csv") :file bar.pdf :height 4 > > #+results: single-date(x="alpha-2.csv") > [[file:foo.pdf]] > > Also, the :height header argument doesn't have any effect. > > I want the single-date source block to be a general function that I > can call several times from an Org-mode file that I hope to distribute > as a piece of reproducible research. There will be separate #+calls > for each of the graphs in the paper. > > Apologies in advance if the answer is obvious. I'm using Org-mode > version 7.02trans (release_7.02.37.g52fb) > I think there was similar discussion already in this list. Take a look at http://www.mail-archive.com/emacs-orgmode@gnu.org/msg32516.html Thanks and Regards Noorul