emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Possible to use src block to generate org headlines for export?


From: Nicolas Goaziou
Subject: Re: [O] Possible to use src block to generate org headlines for export?
Date: Fri, 25 Jul 2014 18:08:24 +0200

Andreas Leha <address@hidden> writes:

> But then, I do not understand your statement 'headlines are the only
> limitation to raw+replace behaviour'.
>
> This code block does not seem to respect 'raw+replace' for me:
>
> #+name: dtrn
> #+BEGIN_SRC R :results raw replace
>   nwords <- 500
>   nletters <- sapply(1:nwords, function(i) sample(1:10, 1))
>   words <- sapply(nletters, function(i) paste(sample(letters, i), 
> collapse=""))
>   words[sample(nwords, 100)] <- "\n"
>   paste(words, collapse=" ")
> #+END_SRC

That was not clear, indeed.

"raw" behaviour is only "useful" (i.e., mandatory) when you want to
insert a headline (or a drawer) as a result of a code block evaluation.
But then, you lose the ability to replace results. That's the limitation
I'm talking about.

In any other case, "drawer+replace" is the superior choice.


Regards,

-- 
Nicolas Goaziou



reply via email to

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