powered by
Performs a series of documentation consistency checks on a package using roxygen2 parsed blocks.
The following checks are performed:
Missing @examples tag in exported functions
@examples
Missing example content
Missing @title
@title
Usage of discouraged @describeIn
@describeIn
Usage of deprecated @return
@return
Missing @returns
@returns
check_docs(pkg_dir = ".", verbose = interactive(), error_on_fail = FALSE)
An object of class "releaser_doc_check" containing a named list of detected issues.
"releaser_doc_check"
Path to the R package.
Logical. If TRUE, prints a formatted summary.
TRUE
Logical. If TRUE, stops execution if any issue is found.
if (FALSE) { my_pkg_dir <- "path/to/my/package" # Full check results <- check_docs(my_pkg_dir) }
Run the code above in your browser using DataLab