Skip to contents

The vectorised form of classify_r_minor_sensitive(). Cached verdicts are read for all packages over a single database connection and query, and only the versions without a cached verdict are downloaded and classified, one at a time, through classify_r_minor_sensitive(). The per-package form opens a fresh TLS connection for every lookup, which made a run whose verdicts were all cached spend about a second per package doing nothing else.

Usage

classify_r_minor_sensitive_many(
  package_names,
  tags,
  local_clone_dir = tempdir(),
  metadata_db_type = "postgres",
  metadata_db_host = NULL,
  metadata_db_name = NULL,
  metadata_db_port = NULL,
  metadata_db_user = NULL,
  metadata_db_password = NULL,
  metadata_db_sslmode = NULL,
  metadata_db_cache_table = "abi_classification"
)

Arguments

package_names, tags

Character vectors of equal length: the package names and the versions to classify.

local_clone_dir

(character)
Path to clone git repos into

metadata_db_type

(character)
Type of metadata database

metadata_db_host

(character)
Host value of metadata database

metadata_db_name

(character)
Name of metadata database

metadata_db_port

(integer)
Port of metadata database

metadata_db_user

(character)
User value of metadata database

metadata_db_password

(character)
User password of metadata database

metadata_db_sslmode

(character)
SSL mode for metadata database, passed to libpq as sslmode. With "verify-ca" or "verify-full" the server certificate is checked against the system CA bundle unless PGSSLROOTCERT names another root.

metadata_db_cache_table

Name of the table holding cached ABI classification verdicts. Created on first use.

Value

A logical vector parallel to package_names: TRUE where the package must be recompiled per R minor version.

Details

If the bulk lookup fails, every package falls back to classify_r_minor_sensitive(), which looks it up on its own.