whitespace_linter | R Documentation |
Check that the correct character is used for indentation.
whitespace_linter()
Currently, only supports linting in the presence of tabs.
Much ink has been spilled on this topic, and we encourage you to check out references for more information.
consistency, default, style
https://www.jwz.org/doc/tabs-vs-spaces.html
https://blog.codinghorror.com/death-to-the-space-infidels/
linters for a complete list of linters available in lintr.
# will produce lints
lint(
text = "\tx",
linters = whitespace_linter()
)
# okay
lint(
text = " x",
linters = whitespace_linter()
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.