missing_package_linter: Missing package linter

View source: R/missing_package_linter.R

missing_package_linterR Documentation

Missing package linter

Description

Check for missing packages in library(), require(), loadNamespace(), and requireNamespace() calls.

Usage

missing_package_linter()

Tags

common_mistakes, robustness

See Also

linters for a complete list of linters available in lintr.

Examples

# will produce lints
lint(
  text = "library(xyzxyz)",
  linters = missing_package_linter()
)

# okay
lint(
  text = "library(stats)",
  linters = missing_package_linter()
)


r-lib/lintr documentation built on Dec. 20, 2024, 7:24 p.m.