[R] conditionally disable evaluation of chunks in Rmarkdown...

Witold E Wolski wewolski at gmail.com
Tue Nov 10 11:40:35 CET 2015

I do have an Rmd where I would like to conditionally evaluate the second part.

So far I am working with :

if(length(specLibrary at ionlibrary) ==0){
  opts_chunk$set(eval=FALSE, message=FALSE, echo=FALSE)

Which disables the evaluation of subsequent chunks.

However my RMD file contains also these kind of snippets : `r `

How do I disable them?


Witold Eryk Wolski

More information about the R-help mailing list