An append-only structured store for the records produced by handlers via
ctx$push_data(). Three backends are available:
"memory"(default): records accumulate in memory."jsonl": each record is appended as a line of JSON to a file — schema-flexible, append-only and resumable across runs."duckdb": records are appended to a table in a DuckDB database, ready for SQL analysis.
Collect everything as a single tibble with cr_collect().
Methods
Dataset$new()
Create a dataset.
Usage
Dataset$new(backend = "memory", path = NULL, table = "dataset")Dataset$close()
Close any open backend resources (e.g. the DuckDB connection). Safe to call multiple times.