emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Out of Order Evaluation
@ 2014-03-20 22:02 Michael Weylandt
  2014-03-20 22:13 ` Andreas Leha
  2014-03-24  2:06 ` Eric Schulte
  0 siblings, 2 replies; 7+ messages in thread
From: Michael Weylandt @ 2014-03-20 22:02 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

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?)

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-03-24  2:08 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2014-03-24  2:06 ` Eric Schulte

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).