View source: R/T_and_F_symbol_linter.R
T_and_F_symbol_linter | R Documentation |
T
and F
symbol linterAlthough they can be synonyms, avoid the symbols T
and F
, and use TRUE
and FALSE
, respectively, instead.
T
and F
are not reserved keywords and can be assigned to any other values.
T_and_F_symbol_linter()
best_practices, consistency, default, readability, robustness, style
linters for a complete list of linters available in lintr.
# will produce lints
lint(
text = "x <- T; y <- F",
linters = T_and_F_symbol_linter()
)
lint(
text = "T = 1.2; F = 2.4",
linters = T_and_F_symbol_linter()
)
# okay
lint(
text = "x <- c(TRUE, FALSE)",
linters = T_and_F_symbol_linter()
)
lint(
text = "t = 1.2; f = 2.4",
linters = T_and_F_symbol_linter()
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.