[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Multiple (identical) RESULTS blocks of one code block?
From: |
Aaron Ecay |
Subject: |
Re: [O] Multiple (identical) RESULTS blocks of one code block? |
Date: |
Mon, 09 Mar 2015 23:05:38 -0300 |
User-agent: |
Notmuch/0.19+52~g1722ea2 (http://notmuchmail.org) Emacs/25.0.50.2 (x86_64-unknown-linux-gnu) |
Hi Rainer,
2015ko martxoak 9an, Rainer M Krug-ek idatzi zuen:
>
> Hi
>
> Consider the following:
>
> --8<---------------cut here---------------start------------->8---
> * The calculation
> #+NAME: testcode :exports both
It looks like you’ve tried to put a header argument into the name. Is
it merely an accident? I ask because...
> #+begin_src R :session test
> runif(10)
> #+end_src
>
>
> * summary of the results
> First time
> #+RESULTS: testcode :exports both
> | 0.772744940361008 |
> | 0.170518629485741 |
> | 0.0833237133920193 |
> | 0.149035625392571 |
> | 0.698798568220809 |
> | 0.627075897762552 |
> | 0.177144371205941 |
> | 0.0476319056469947 |
> | 0.289851602632552 |
> | 0.0296813279855996 |
>
> * and another
> testthingy
> #+RESULTS: testcode :exports both
...here it reoccurs, in identical format. This is fine, interpreted
as just a weird block name (and not as an actual header argument).
But if you’re trying to allow the header arguments to vary for the two
result blocks I don’t think it will be very nice. (It would require
re-evaluating the code block for each different combination of header
arguments, which would give unexpected behavior in the case of side
effects, etc. etc.)
Maybe it’s not very important, but I just figured I’d ask for
clarification.
Thanks,
--
Aaron Ecay
Re: [O] Multiple (identical) RESULTS blocks of one code block?, Nicolas Goaziou, 2015/03/09
Re: [O] Multiple (identical) RESULTS blocks of one code block?,
Aaron Ecay <=