Learn R Programming

rapbase (version 1.24.2)

filterAutoRep: Filter auto report data

Description

Generic function to filter various entities from auto report data

Usage

filterAutoRep(data, by, pass)

Value

List of auto reports matching the filtering criteria

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

Examples

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

Run the code above in your browser using DataLab