emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Michael Weylandt <michael.weylandt@gmail.com>
To: Charles Berry <ccberry@ucsd.edu>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: Out of Order Evaluation
Date: Fri, 21 Mar 2014 14:51:22 -0400	[thread overview]
Message-ID: <483B5140-8D74-426E-9F94-DEBD3531A77E@gmail.com> (raw)
In-Reply-To: <loom.20140321T020453-841@post.gmane.org>



On Mar 20, 2014, at 21:34, Charles Berry <ccberry@ucsd.edu> wrote:

> Andreas Leha <andreas.leha <at> med.uni-goettingen.de> writes:
> 
>> 
>> Hi Michael,
>> 
>> Michael Weylandt <michael.weylandt <at> gmail.com> writes:
>> 
>>> Hi, 
>>> 
>>> I want to put a summary of my analysis at the beginning of a document
>>> using results calculated at the end of the document. Is this possible?
> 
> [snip]
> 
>>> 
>>> Is this possible in a single pass?
> 
> 
> Not quite. The method suggested by Andreas computes the result twice. If
> there is any randomness in the results (as in the example) you will get a 
> different answer in the summary than when the block is later evaluated.
> 
>>> I've played with #+NAME and
>>> <<block()>> but haven't gotten the out-of-order evaluation quite
>>> right.
> 
> You can use
> 
> #+results: the-mean
> 
> before 
> 
> #+NAME: the-mean
> #+begin_src R
> mean(x)
> #+end_src
> 
> which is after 'theanalysis' block.
> 
> And if the format is not pleasing add a filter that reformats the results

Great. The named result block is just what I needed. 

> 
> IMO, needing ':exports results' for inline src blocks is a bug not a
> feature. 
> 

Agreed, particularly in light of Eric's comments at 

http://lists.gnu.org/archive/html/emacs-orgmode/2014-03/msg00285.html

There's the variable org-babel-inline-header-args, but it seems using

#+PROPERTY: header-args :exports both

overrules/breaks it

Would org want something like 

#+PROPERTY: inline-header-args :exports results 

Or just 'hard-code' :exports results for all inline blocks?

  parent reply	other threads:[~2014-03-21 18:51 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-20 22:02 Out of Order Evaluation Michael Weylandt
2014-03-20 22:13 ` Andreas Leha
2014-03-21  1:34   ` Charles Berry
2014-03-21  8:01     ` Andreas Leha
2014-03-21  8:15       ` Andreas Leha
2014-03-21 18:51     ` Michael Weylandt [this message]
2014-03-24  2:06 ` Eric Schulte

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=483B5140-8D74-426E-9F94-DEBD3531A77E@gmail.com \
    --to=michael.weylandt@gmail.com \
    --cc=ccberry@ucsd.edu \
    --cc=emacs-orgmode@gnu.org \
    /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).