toggle.redo: Toggle Redo Variables

View source: R/toggle_redo.R

toggle.redoR Documentation

Toggle Redo Variables

Description

Toggle the state (TRUE to FALSE or FALSE to TRUE) of your redo variables, or set all to TRUE or FALSE.

Usage

toggle.redo(redo.vars, set.all.to = NULL)

Arguments

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.

Examples

chunk.names <- c("chunk1", "chunk2")

assign.redo(chunk.names)

toggle.redo("chunk1")

if (redo$chunk1) {
  x <- rnorm(100)
} else {
  x <- data(example_data1)
}

kstagaman/redoControl documentation built on April 6, 2022, 8:04 a.m.