|
From: | Erik Iverson |
Subject: | Re: [Orgmode] Bug: export aborts if ':eval query/never' in source code blocks |
Date: | Thu, 26 Aug 2010 16:56:58 -0500 |
User-agent: | Thunderbird 2.0.0.23 (X11/20090812) |
Eric, As a follow-up on a related issue: What if I want to eval a code block for some side-effect, but *not* include code or results in export. This assumes I'm using :session. Is there a way to currently do that? Setting :exports none seems to block evaluating of the code, can the :eval argument 'override' that so the block is eval'd, but no export is produced. In R, I currently can just put the last line of the block I want this behavior for as NULL with :exports results and it seems to do what I want. Just wondering if there was a more 'official' way? Here's a sample file that seems to do as I want, with the NULL trick. Just wonder if :eval can help at all. * I want only the 2nd block exported #+begin_src R :exports results :session x <- 2 + 3 NULL #+end_src #+begin_src R :session :exports results x #+end_src Eric Schulte wrote:
Hi Paul, This is on the top of the stack for Babel bug fixes (see [1]), and I hope to have a solution pushed up to the git repository soon. I'll reply to this email when this issue is resolved. Thanks -- Eric Paul Sexton <address@hidden> writes:#+BEGIN_SRC R :eval query ... #+END_SRC If the above is in an org file, the user runs an export (C-c C-e), and the user types 'no' when asked whether to evaluate the code block, then the whole export process is aborted (no further blocks are processed and no export output is produced). The same thing happens with ':eval never'. Paul _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. address@hidden http://lists.gnu.org/mailman/listinfo/emacs-orgmodeFootnotes: [1] http://eschulte.github.com/babel-dev/STARTED-How-to-quietly-exclude-block-from-evaluation-.html_______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. address@hidden http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Prev in Thread] | Current Thread | [Next in Thread] |