[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] Tag individual output lines from source block?
From: |
Michael Hannon |
Subject: |
[O] Tag individual output lines from source block? |
Date: |
Wed, 25 Jan 2012 18:47:48 -0800 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
Greetings. I'd like to know if there is some way to "tag" the output of a
source-code block so as to indicate which line of the source-code block
produced the output.
In the appended example, the results of computing both "myMat" and
"diag(myMat)" are juxtaposed. I'm looking for a way to indicate that the
first part of the output is from "myMat", and the second is from
"diag(myMat)".
I understand that I could achieve the effect by using separate source-code
blocks and/or just inserting print statements into the source-code block. I
just thought that there might be some Org-mode feature that I've overlooked.
(And, of course, the situation is not always as simple as in this example.)
Thanks,
-- Mike
#+PROPERTY: session *R*
#+PROPERTY: cache yes
#+PROPERTY: results output verbatim
#+PROPERTY: exports both
#+PROPERTY: tangle yes
* Test
#+BEGIN_SRC R
myMat <- matrix(c(1, 2, 3, 4, 5, 6, 7, 8, 9), nrow=3)
myMat
diag(myMat)
#+END_SRC
#+RESULTS[3ac776362ed92ae4090c997f1b7b1922ee565681]:
: [,1] [,2] [,3]
: [1,] 1 4 7
: [2,] 2 5 8
: [3,] 3 6 9
: [1] 1 5 9
Org-mode version 7.8.03 (release_7.8.03.237.g674bb)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [O] Tag individual output lines from source block?,
Michael Hannon <=