nonportable_path_linter {lintr} | R Documentation |
Non-portable path linter
Description
Check that file.path()
is used to construct safe and portable paths.
Usage
nonportable_path_linter(lax = TRUE)
Arguments
lax |
Less stringent linting, leading to fewer false positives.
If
|
Tags
best_practices, configurable, robustness
See Also
-
linters for a complete list of linters available in lintr.
Examples
# 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()
)
[Package lintr version 3.2.0 Index]