emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Michael Weylandt <michael.weylandt@gmail.com>
To: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Out of Order Evaluation
Date: Thu, 20 Mar 2014 18:02:20 -0400	[thread overview]
Message-ID: <8AE0B11E-8EA2-41A8-8D0C-CDB610785239@gmail.com> (raw)

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? 

#=========
#+TITLE: Test
#+AUTHOR: Michael Weylandt
#+PROPERTY: header-args:R :session *__R__* :exports both

* Summary
The mean result was src_R[:exports results]{mean(x)}

* Analysis, 
We do some complicated calculations: 

#+BEGIN_SRC R
x <- rnorm(5)
#+END_SRC
#=========

Is this possible in a single pass? I've played with #+NAME and <<block()>> but haven't gotten the out-of-order evaluation quite right. 

Michael

(Bonus question, is there a way to not have to put ":exports results" in inline blocks?)

             reply	other threads:[~2014-03-20 22:02 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-20 22:02 Michael Weylandt [this message]
2014-03-20 22:13 ` Out of Order Evaluation 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
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=8AE0B11E-8EA2-41A8-8D0C-CDB610785239@gmail.com \
    --to=michael.weylandt@gmail.com \
    --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).