emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Out of Order Evaluation


From: Eric Schulte
Subject: Re: [O] Out of Order Evaluation
Date: Sun, 23 Mar 2014 20:06:28 -0600
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Michael Weylandt <address@hidden> 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?
>

Yes, simply place the calculation in a subtree marked with :noexport at
the top of the document.

Best,

>
> #=========
> #+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?)

-- 
Eric Schulte
https://cs.unm.edu/~eschulte
PGP: 0x614CA05D



reply via email to

[Prev in Thread] Current Thread [Next in Thread]