check: Check package

View source: R/check.R

checkR Documentation

Check package

Description

Check package

Usage

check(
  path = getwd(),
  lints = TRUE,
  urls = TRUE,
  styler = FALSE,
  cran = FALSE,
  biocCheck = TRUE,
  coverage = FALSE
)

Arguments

path

character(1). File path (e.g. to package).

lints

logical(1). Perform lintr::lint_package() checks.

urls

logical(1). Perform urlchecker::url_check() checks.

styler

logical(1). Perform styler::style_pkg() checks. Currently using air by default for automatic reformatting, but this can be enabled to use styler formatting rules instead.

cran

logical(1). Perform additional CRAN submission checks.

biocCheck

logical(1). Perform additional Bioconductor checks. BiocCheck is only called when we detect "biocViews" metadata in DESCRIPTION file, and when the directory name is identical to the package name. BiocCheck currently errors on directory names that differ from package name.

coverage

logical(1). Check that unit tests provide sufficient coverage.

Value

TRUE on success, otherwise error.

Note

Updated 2025-04-24.

Examples

## > check()

mjsteinbaugh/devtools documentation built on June 13, 2025, 3:18 a.m.