Skip to contents

Summarize the data package quality report

Usage

read_data_package_report_summary(
  packageId,
  with_exceptions = TRUE,
  env = "production"
)

Arguments

packageId

(character) Data package identifier

with_exceptions

(logical) Convert quality report warnings and errors to R warnings and errors

env

(character) Repository environment. Can be: "production", "staging", or "development".

Value

(message/warning/error) A message listing the total number of checks resulting in valid, info, warn, and error status. Exceptions are raised if warnings and errors are found and with_exceptions is TRUE.

Examples

if (FALSE) { # \dontrun{

# Read report summary
read_data_package_report_summary("knb-lter-knz.260.4")
#> ===================================================
#>   EVALUATION REPORT
#> ===================================================
#>   
#> PackageId: knb-lter-knz.260.4
#> Report Date/Time: 2020-02-04T16:38:38
#> Total Quality Checks: 213
#> Valid: 139
#> Info: 73
#> Warn: 1
#> Error: 0
#> 
#> 
#> Warning message:
#> One or more quality checks resulted in 'warn' 
} # }