Learn R Programming

gtfstools (version 2.0.1)

warn_invalid_ids: Warn about ids missing from a table, with cli

Description

The cli counterpart of warn_missing_ids(), whose base warning() text the older callers keep. Raises a warning of class gtfstools_invalid_<id_name> listing the distinct elements of id not found in existing_id.

Usage

warn_invalid_ids(id, existing_id, table, id_name)

Value

The distinct missing ids, invisibly (NULL if id is NULL).

Arguments

id

A character vector of ids given by the user, or NULL.

existing_id

A character vector of the ids that exist in the table.

table

The name of the table, used in the warning message.

id_name

The name of the id field, used in the warning message and in the condition class.