emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Naming a table produced by a CALL


From: Loris Bennett
Subject: Re: [O] Naming a table produced by a CALL
Date: Mon, 27 Jan 2014 10:50:03 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux)

Eric Schulte <address@hidden> writes:

> Andreas Leha <address@hidden> writes:
>
>> Hi Loris,
>>
>> "Loris Bennett" <address@hidden> writes:
>>
>>> Andreas Leha <address@hidden> writes:
>>>
>>>> "Loris Bennett" <address@hidden> writes:
>>>>
>>>>> Hi,
>>>>>
>>>>> I have a CALL which produces a table, which just gets the keyword
>>>>> RESULT.  I would like to plot the data in the table with R and so would
>>>>> like to refer to the data in the table.
>>>>>
>>>>> It seems I need to need to replace RESULT by NAME in
>>>>> org-babel-results-keyword, but how do I pass the actual name?
>>>>>
>>>>> Cheers,
>>>>>
>>>>> Loris
>>>>
>>>> Make the CALL named:
>>>>
>>>> #+name: foo
>>>> #+call: foo()
>>>>
>>>> HTH,
>>>> Andreas

This seems to break if I then try to reference the results of the call:

#+NAME: test
#+BEGIN_SRC sh
echo a b c
echo 1 2 3
echo 4 5 6
#+END_SRC

#+NAME: call-test
#+CALL: test() :results table :colnames yes

#+RESULT: call-test
| a | b | c |
|---+---+---|
| 1 | 2 | 3 |
| 4 | 5 | 6 |

#+NAME: r-test
#+HEADER: :var data=call-test
#+HEADER: :colnames yes
#+BEGIN_SRC R
data
#+END_SRC

#+RESULT: r-test
| x   |
|-----|
| nil |

Is it perhaps not clear whether "call-test" refers to the result or the
call?  Or is my config broken?  I'm using version 

8.2.5g (8.2.5g-7-gb2dce8-elpaplus).

Cheers,

Loris

>>> Thanks.  In retrospect, that seems quite obvious.  Where is this
>>> documented and should it be mentioned here:
>>>
>>> http://orgmode.org/manual/Evaluating-code-blocks.html
>>>
>>
>> This is a 'not-so-old' feature.
>
> Yes, I believe this was added in the last month or two.
>
>> And I do not know whether it is documented at all.  I agree that
>> 'Evaluating code blocks' is where the documentation should go.
>>
>
> I'll happily apply a documentation patch.  I don't believe the copyright
> assignment required for code contributions is required for contributions
> to the documentation.
>
> Best,
>
>>
>> Regards,
>> Andreas
>>
>>
>>> ?
>>>
>>> Cheers,
>>>
>>> Loris
>>
>>

-- 
Dr. Loris Bennett (Mr.)
ZEDAT, Freie Universität Berlin         Email address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]