Skip to contents

Convenience wrapper around vmp_bb_tenders() that also writes the overview report. For the combined multi-portal run see screen_all_portals().

Usage

check_tenders(
  dir = "reports",
  headless = TRUE,
  login = FALSE,
  max_pages = Inf,
  publication_types = c("ExAnte", "Tender"),
  contracting_rules = "VOL",
  screen_details = TRUE,
  max_detail = Inf,
  screen_notice = FALSE,
  max_notice = Inf,
  username = Sys.getenv("VMP_BB_USERNAME"),
  password = Sys.getenv("VMP_BB_PASSWORD"),
  keywords = tender_keywords()
)

Arguments

dir

Output directory for the report and caches (default "reports").

headless

Run chromote headless (default TRUE).

login

Log in before scraping (default FALSE; the search is public).

max_pages

Maximum number of result pages to scrape (default Inf).

publication_types, contracting_rules

Search filter passed to vmp_bb_scrape_tenders().

screen_details

Detail-page layer (default TRUE; see enrich_with_details()).

max_detail

Maximum number of detail pages to screen (default Inf).

screen_notice

Notice-PDF layer (default FALSE; forces login = TRUE; see enrich_with_notice()).

max_notice

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

username, password

Credentials when login = TRUE (default env vars VMP_BB_USERNAME / VMP_BB_PASSWORD).

keywords

Keyword list for relevance scoring (default tender_keywords()).

Value

Invisibly, the scored tibble of all tenders.

Examples

if (FALSE) { # \dontrun{
check_tenders() # public search, all pages
check_tenders(max_pages = 2) # quick test
} # }