Lists all documented functions in a package and checks their documentation elements for potential issues. The following checks are performed:
Title is present and doesn't start with regex "Function".
Description is present and doesn't start with "This function".
Value is present.
Example is present.
Value
Returns a dataframe with columns title
, description
, value
, examples
and rows corresponding to the documented functions in the package. Each cell contains a string describing the check result for the corresponding documentation element of that function.
Examples
df <- check_pkg_docs("tools")
try(df <- check_pkg_docs())