Rainer M Krug wrote:
> Charles Berry <ccbe...@ucsd.edu> writes:
>> Rainer M Krug <Rainer <at> krugs.de> writes:
>>> 
>>> when exporting the fillowing org file, I get an endless loop of
>>> evaluations.
>>> 
>>> --8<---------------cut here---------------start------------->8---
>>> #+PROPERTY: header-args :exports both
>>> #+PROPERTY: header-args+ :results output
>>> * The bug
>>> This file create an (possibly endless?) loop during export
>>> * here exports both
>>> #+begin_src R 
>>> cat(13+14)
>>> #+end_src
>>> 
>>> * and here only code
>>> :PROPERTIES:
>>> :header-args+: exports code
>>> :END:
>>> #+begin_src R 
>>> paste(13+14)
>>> #+end_src
>>> --8<---------------cut here---------------end--------------->8---
>>
>> Add this to the end of your example and run the src block:
>>
>> #+BEGIN_SRC emacs-lisp :results pp
>> (org-entry-get (point) "header-args" t)
>> #+END_SRC
>>
>> #+RESULTS:
>> : ":exports both :results output exports code"
>
> Very useful function - I think I will use it quite often! I would have
> seen the problem immediately - the missing :

FWIW, `C-c C-v I' (or `C-c C-v C-I') would show you:

--8<---------------cut here---------------start------------->8---
Lang: R
Header Arguments:
        :cache          no
        :exports        code
        :hlines         no
        :noweb          no
        :results        replace
        :session        none
        :tangle         no
        exports         code
--8<---------------cut here---------------end--------------->8---

Best regards,
  Seb

-- 
Sebastien Vauban


Reply via email to