Skip to contents

Records updated, merged or removed at or after since (live only). Each row has entity_type, id, accession, status ("updated", "merged" or "removed"), merged_into (a merge's survivor) and updated_at. To keep a local copy in sync, store provenance(feed)$as_of and pass it as the next since.

Usage

changes(since, entity_type = NULL, limit = Inf, client = plasticdb_client())

Arguments

since

A time (POSIXct, Date or ISO 8601 string).

entity_type

NULL for every type, or one of "protein", "protein_variant", "microorganism", "plastic", "paper".

limit

The most records to return (Inf for all of them).

client

A plasticdb_client().

Value

A tibble; its provenance also carries since and as_of.

Examples

feed <- changes(since = Sys.Date() - 7, limit = 10)
table(feed$status)
provenance(feed)$as_of