View source: R/absolute_path_linter.R
absolute_path_linter | R Documentation |
Check that no absolute paths are used (e.g. "/var", "C:\System", "~/docs").
absolute_path_linter(lax = TRUE)
lax |
Less stringent linting, leading to fewer false positives.
If
|
best_practices, configurable, robustness
linters for a complete list of linters available in lintr.
nonportable_path_linter()
# will produce lints
lint(
text = 'R"--[/blah/file.txt]--"',
linters = absolute_path_linter()
)
# okay
lint(
text = 'R"(./blah)"',
linters = absolute_path_linter()
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.