Even simpler one-liner for quick testing during development.
Usage
quick_test(xpath, code, message = "Found match")
Arguments
- xpath
XPath expression to test.
- code
Code to test against.
- message
Message for the lint (optional, for display).
Examples
if (FALSE) { # \dontrun{
# Quick test if an XPath matches
quick_test("//SYMBOL[text() = 'T']", "x <- T")
} # }