Calls each source connector (a function returning a scored tender tibble),
tagging it with a Plattform, combines the results with combine_tenders()
and writes one report via write_tender_report(). A source that errors is
logged and skipped, so one portal failing does not abort the run.
Usage
screen_portals(
sources,
dir = "reports",
portal = "tenders",
keywords = tender_keywords(),
keep_types = c("Ausschreibung", "Geplante Ausschreibung", "Vergebener Auftrag"),
since_days = NULL,
dedupe = TRUE,
verbose = TRUE
)Arguments
- sources
A named list of functions, each returning a scored tibble (e.g.
list("TED" = function() ted_tenders())). The name is used as thePlattformif the connector does not set one.- dir
Output directory (default
"reports").- portal
File-name id for the combined report (default
"tenders").- keywords
Passed to connectors that take it (currently informational).
- keep_types
Keep only these
Veroeffentlichungstypvalues (default: Ausschreibung, Geplante Ausschreibung and Vergebener Auftrag -> own section each).NULLkeeps all types.- since_days
If set, keep only notices whose
Veroeffentlicht(publication date) is within the lastsince_daysdays;NULL(default) applies no date filter. Used to unify the look-back window across portals.- dedupe
Merge cross-portal duplicates with
dedupe_tenders()before writing (defaultTRUE).- verbose
Print progress (default
TRUE).
Examples
if (FALSE) { # \dontrun{
screen_portals(list(
"Oeffentliche Vergabe" = function() oeffentlichevergabe_tenders(days = 7),
"TED" = function() ted_tenders()
))
} # }