Check whether an object is from a given database and complete appropriate messaging
check_provenance(
obj,
db,
altfunc = "fetch",
altfunc_suffix = NULL,
objtype = "IDs",
call = rlang::caller_env()
)The object to check.
The database which the object should be from.
The function name stub (e.g. "fetch", used for messaging). If NULL, suppresses alternate function suggestion.
The function name suffix (e.g. "chunked", used for messaging).
The type of object (used for messaging).
The env from which this was called (defaults to the direct calling environment).