Skip to contents

Assembles the five result data frames and a metadata list into a validated pkgaudit S3 object. audit_package() calls this at the end of a scan.

Usage

new_pkgaudit(file_contexts, patterns, matches, coverage, errors, metadata)

Arguments

file_contexts, patterns, matches, coverage, errors

Data frames with the columns documented in audit_package().

metadata

Named list with the fields documented in audit_package(), each a length-one value of the expected type.

Value

A pkgaudit object: a named list of file_contexts, patterns, matches, coverage, errors, and metadata.