View source: R/backport_linter.R
backport_linter | R Documentation |
Check for usage of unavailable functions. Not reliable for testing r-devel dependencies.
backport_linter(r_version = getRversion(), except = character())
r_version |
Minimum R version to test for compatibility |
except |
Character vector of functions to be excluded from linting.
Use this to list explicitly defined backports, e.g. those imported from the |
configurable, package_development, robustness
linters for a complete list of linters available in lintr.
# will produce lints
lint(
text = "trimws(x)",
linters = backport_linter("3.0.0")
)
lint(
text = "str2lang(x)",
linters = backport_linter("3.2.0")
)
# okay
lint(
text = "trimws(x)",
linters = backport_linter("3.6.0")
)
lint(
text = "str2lang(x)",
linters = backport_linter("4.0.0")
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.