Skip to contents

For ongoing tenders not yet cached, reads the published announcement PDF(s) via the logged-in session and matches the keyword groups against the text. Adds a notice_groups column, merges it into groups/is_relevant and adds the notice source to match_source. Requires a logged-in session. The updated cache is returned as attr(result, "notice_cache").

Usage

enrich_with_notice(
  session,
  tenders,
  keywords = tender_keywords(),
  ongoing_only = TRUE,
  max_notice = Inf,
  delay = 0.3,
  cache = NULL
)

Arguments

session

A logged-in session from vmp_bb_session().

tenders

A tibble (typically already passed through enrich_with_details()).

keywords

Keyword groups (default tender_keywords()).

ongoing_only

Only screen ongoing tenders (default TRUE).

max_notice

Maximum number of new notice PDFs to read (default Inf).

delay

Seconds between tenders (default 0.3).

cache

Notice cache from a previous run (see read_notice_cache()).

Value

tenders with the notice layer merged in.