empty_assignment
NoteAdded in 0.0.8
What it does
Looks for patterns such as x <- {}.
Why is this bad?
Assignment of {} is the same as assignment of NULL, but the latter is clearer.
Example
a <- {}
b <- {
}Use instead:
a <- NULL
b <- NULLYou are viewing the development version of the documentation. Use the dropdown on the top right to see the stable version.
Looks for patterns such as x <- {}.
Assignment of {} is the same as assignment of NULL, but the latter is clearer.
Use instead: