filterAutoRep: Filter auto report data

View source: R/autoReport.R

filterAutoRepR Documentation

Filter auto report data

Description

Generic function to filter various entities from auto report data

Usage

filterAutoRep(data, by, pass)

Arguments

data

List (nested) specifying auto reports to be filtered. May be obtained by rapbase::getConfig(fileName = "autoReport.yml")

by

Character string defining the filtering entity and must be one of c("package", "type", "owner", "organization"). The term 'package' represents the registry name

pass

Character vector defining the values of the filtering entity that will allow reports to pass through the filter

Value

List of auto reports matching the filtering criteria

Examples

ar <- list(ar1 = list(type = "A"), ar2 = list(type = "B"))
filterAutoRep(ar, "type", "B") # ar2


Rapporteket/rapbase documentation built on Nov. 22, 2023, 9:21 p.m.