R/zzz.R

Defines functions lint_tidy_typed .onLoad

.onLoad <- function(libname, pkgname) {
  if (requireNamespace("roxylint", quietly = TRUE))
    roxylint::register_linters(typed = lint_tidy_typed)
}

lint_tidy_typed <- function(x, name, type, description, ...) {
  roxylint::lint_sentence_case(description)
  roxylint::lint_full_stop(description)
}

Try the roxytypes package in your browser

Any scripts or data that you put into this service are public.

roxytypes documentation built on Oct. 16, 2024, 1:06 a.m.