View source: R/make_linter_from_xpath.R
make_linter_from_xpath | R Documentation |
Create a linter from an XPath
make_linter_from_xpath(
xpath,
lint_message,
type = c("warning", "style", "error"),
level = c("expression", "file")
)
make_linter_from_function_xpath(
function_names,
xpath,
lint_message,
type = c("warning", "style", "error"),
level = c("expression", "file")
)
xpath |
Character string, an XPath identifying R code to lint.
For |
lint_message |
The message to be included as the |
type |
type of lint. |
level |
Which level of expression is being tested? |
function_names |
Character vector, names of functions whose calls to examine.. |
number_linter <- make_linter_from_xpath("//NUM_CONST", "This is a number.")
lint(text = "1 + 2", linters = number_linter())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.