From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: Out of Order Evaluation Date: Sun, 23 Mar 2014 20:06:28 -0600 Message-ID: <87bnwwgxjv.fsf@gmail.com> References: <8AE0B11E-8EA2-41A8-8D0C-CDB610785239@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47890) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WRuJg-0003H6-BI for emacs-orgmode@gnu.org; Sun, 23 Mar 2014 22:08:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WRuJb-0005cD-6I for emacs-orgmode@gnu.org; Sun, 23 Mar 2014 22:08:44 -0400 Received: from mail-ie0-x232.google.com ([2607:f8b0:4001:c03::232]:53124) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WRuJb-0005c5-0E for emacs-orgmode@gnu.org; Sun, 23 Mar 2014 22:08:39 -0400 Received: by mail-ie0-f178.google.com with SMTP id lx4so4934599iec.9 for ; Sun, 23 Mar 2014 19:08:38 -0700 (PDT) In-Reply-To: <8AE0B11E-8EA2-41A8-8D0C-CDB610785239@gmail.com> (Michael Weylandt's message of "Thu, 20 Mar 2014 18:02:20 -0400") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Michael Weylandt Cc: "emacs-orgmode@gnu.org" Michael Weylandt 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 > <> 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