numeric_leading_zero_linter | R Documentation |
While .1 and 0.1 mean the same thing, the latter is easier to read due to the small size of the '.' glyph.
numeric_leading_zero_linter()
consistency, readability, style
linters for a complete list of linters available in lintr.
# will produce lints
lint(
text = "x <- .1",
linters = numeric_leading_zero_linter()
)
lint(
text = "x <- -.1",
linters = numeric_leading_zero_linter()
)
# okay
lint(
text = "x <- 0.1",
linters = numeric_leading_zero_linter()
)
lint(
text = "x <- -0.1",
linters = numeric_leading_zero_linter()
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.