View source: R/mutator-condition.R
| remove_condition_negation | R Documentation |
The inverse of negate_condition(). Strips the leading ! from any
already-negated condition, so if (!done) becomes if (done) and
while (!ready) becomes while (ready).
remove_condition_negation(statements = c("if", "while"))
statements |
Character vector of statement types to target.
Must be a subset of |
Unlike remove_negation(), this mutator is scoped exclusively to
conditions, leaving negations in other positions (assignments, return
values, etc.) untouched.
A Mutator object.
remove_condition_negation()
remove_condition_negation(statements = "while")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.