Learn R Programming

box.linters (version 0.10.6)

box_mod_fun_exists_linter: box library attached function exists and exported by called module linter

Description

Checks that functions being attached exist and are exported by the local module being called.

Usage

box_mod_fun_exists_linter()

Arguments

Value

A custom linter function for use with r-lib/lintr

Details

For use in rhino, see the Explanation: Rhino style guide to learn about the details.

Examples

Run this code
if (FALSE) {
# will produce lint
lintr::lint(
  text = "box::use(path/to/module_a[function_not_exists],)",
  linter = box_mod_fun_exists_linter()
)

# okay
lintr::lint(
  text = "box::use(path/to/module_a[function_exists],)",
  linter = box_mod_fun_exists_linter()
)
}

Run the code above in your browser using DataLab