emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Thomas S. Dye" <tsd@tsdye.com>
To: "Thomas S. Dye" <tsd@tsdye.com>
Cc: Org Mode <emacs-orgmode@gnu.org>, Noorul Islam K M <noorul@noorul.com>
Subject: Re: #+call ?
Date: Sun, 31 Oct 2010 20:24:41 -1000	[thread overview]
Message-ID: <6B9E8E3C-B256-4C2E-A744-C938360EF3F0@tsdye.com> (raw)
In-Reply-To: <A5799897-7139-4FBB-9D2C-8DC0B717A8DF@tsdye.com>

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" <tsd@tsdye.com> 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

  reply	other threads:[~2010-11-01  6:24 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-01  3:44 #+call ? Thomas S. Dye
2010-11-01  5:40 ` Noorul Islam K M
2010-11-01  6:21   ` Thomas S. Dye
2010-11-01  6:24     ` Thomas S. Dye [this message]
2010-11-05  8:40       ` Sébastien Vauban
2010-11-05 10:43         ` Sébastien Vauban

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6B9E8E3C-B256-4C2E-A744-C938360EF3F0@tsdye.com \
    --to=tsd@tsdye.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=noorul@noorul.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).