From: "Eric Schulte" <schulte.eric@gmail.com>
To: Erik Iverson <eriki@ccbr.umn.edu>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: [babel] silent code block evaluation on export
Date: Wed, 01 Sep 2010 19:37:50 -0600 [thread overview]
Message-ID: <87k4n5c4cx.fsf@gmail.com> (raw)
In-Reply-To: <87d3sxdmqv.fsf@gmail.com> (Eric Schulte's message of "Wed, 01 Sep 2010 18:15:20 -0600")
"Eric Schulte" <schulte.eric@gmail.com> writes:
> Hi Erik,
>
> I believe that when a session is specified then all code blocks will be
> evaluated but their results will not be included in the exported output.
>
To clarify the above,
if a code block has a :session header argument, then it is assumed that
the block should be evaluated regardless of it's :export header
argument, because it could change the state of the session, so in the
following simple example the first code block is evaluated on export
despite having an :exports none header argument, and this ensure that
the value of x is set for the second code block.
--8<---------------cut here---------------start------------->8---
** :session evaluation on export
This first block is evaluated but /doesn't/ appear in export.
/:session *R* :exports none/
#+begin_src R :session *R* :exports none
x <- 8
#+end_src
This second block /does/ appear in export.
#+begin_src R :session *R* :exports results
x
#+end_src
--8<---------------cut here---------------end--------------->8---
Cheers -- Eric
next prev parent reply other threads:[~2010-09-02 1:37 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-31 18:42 [babel] silent code block evaluation on export Erik Iverson
2010-09-02 0:15 ` Eric Schulte
2010-09-02 1:37 ` Eric Schulte [this message]
2010-09-02 2:09 ` Erik Iverson
2010-09-02 4:10 ` 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=87k4n5c4cx.fsf@gmail.com \
--to=schulte.eric@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=eriki@ccbr.umn.edu \
/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).