A minimal Rmarkdown document has a YAML header, markup syntax, and R code fragments. To edit such a multilingual file, I use the Emacs editor, and the buffer in which the Rmd document is open is in polymode .
A typical document contains more than one R fragment. When I write / debug an R fragment in the middle of an Rmd document, I have a second buffer in ESS mode, where R works inside, and I often have to re-execute all previous fragments by sending R commands from the Rmd file (1st buffer) to console R (second buffer).
Is there one command that allows you to execute all commands from all pieces?
From another question , it looks like org-mode can do this. But can this be done in my conditions?
source
share