From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thomas S. Dye" Subject: Re: #+call ? Date: Sun, 31 Oct 2010 20:24:41 -1000 Message-ID: <6B9E8E3C-B256-4C2E-A744-C938360EF3F0@tsdye.com> References: <99BCF852-FBBA-4509-8DEC-88C0B83D302A@tsdye.com> <871v75wqi2.fsf@noorul.maa.corp.collab.net> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=42612 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PCnp0-0005D3-C9 for emacs-orgmode@gnu.org; Mon, 01 Nov 2010 02:24:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PCnoz-0006kS-DB for emacs-orgmode@gnu.org; Mon, 01 Nov 2010 02:24:46 -0400 Received: from oproxy1-pub.bluehost.com ([66.147.249.253]:51835) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PCnoz-0006jv-6y for emacs-orgmode@gnu.org; Mon, 01 Nov 2010 02:24:45 -0400 In-Reply-To: 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 , Noorul Islam K M Replying to his own message: I found Eric's reply. Sorry for the noise. All the best, Tom On Oct 31, 2010, at 8:21 PM, Thomas S. Dye wrote: > > On Oct 31, 2010, at 7:40 PM, Noorul Islam K M wrote: > >> "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 > > Aloha Noorul, > > There is a similar question, but no answer that I can find. Did you > see an answer there? > > All the best, > Tom