toggle.redo | R Documentation |
Toggle the state (TRUE to FALSE or FALSE to TRUE) of your redo variables, or set all to TRUE or FALSE.
toggle.redo(redo.vars, set.all.to = NULL)
redo.vars |
A character vector of the variable names you want to toggle state. |
set.all.to |
TRUE/FALSE, instead of toggling the state of individual redo variable, set all to TRUE or FALSE. |
chunk.names <- c("chunk1", "chunk2") assign.redo(chunk.names) toggle.redo("chunk1") if (redo$chunk1) { x <- rnorm(100) } else { x <- data(example_data1) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.