Learn R Programming

lintr (version 0.2.0)

expect_lint: Lint expectation

Description

Lint expectation

Usage

expect_lint(content, checks, ...)

Arguments

content
the file content to be linted
checks
a list of named vectors of checks to be performed. Performs different checks depending on the value of checks.
  • NULL check if the lint returns no lints.
  • unnamed-vector check if the lint's message matches the value.
  • named-vector che
...
one or more linters to use for the check