Andreas Leha <andreas.l...@med.uni-goettingen.de> 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