View source: R/nonportable_path_linter.R
nonportable_path_linter | R Documentation |
Check that file.path()
is used to construct safe and portable paths.
nonportable_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.
absolute_path_linter()
# will produce lints
lint(
text = "'abcdefg/hijklmnop/qrst/uv/wxyz'",
linters = nonportable_path_linter()
)
# okay
lint(
text = "file.path('abcdefg', 'hijklmnop', 'qrst', 'uv', 'wxyz')",
linters = nonportable_path_linter()
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.