knitr :: spin () is a great tool for those who prefer to write code first and second. I would like to use it to create documents with a little repetition of code, but a lot of output and text comments. However, every time I turn off the echo and then add text, spin () turns back on again.
Is there anyway for spin () to select global options from r script that it rotates? for example, a conceptual way could be to place
#+ opts_chunk$set(echo=FALSE)
as the first line, but it does not seem to be recognized by the spin () function. Is there any way to achieve this?
Mark
r knitr
Mark payne
source share