Skip to contents

List every registered codec and whether it can read and write in this session. Every format artoo ships is available: the pure-R codecs need nothing, and the one engine-backed codec (parquet) names a package artoo depends on rather than suggests. The columns exist because the registry supports an engine that may be absent, not because one currently is. Purely informational, modelled on the diagnostic helpers in the wider ecosystem; it never aborts.

Usage

artoo_formats()

Value

A <data.frame> with one row per format and columns format, read, write (logical), and extensions.

See also

read_dataset() and write_dataset() which use the registry.

Examples

# ---- Example 1: see what this session can read and write ----
#
# rds is always available; the table shows the extensions each codec claims.
artoo_formats()
#>    format read write    extensions
#> 1    json TRUE  TRUE          json
#> 2  ndjson TRUE  TRUE ndjson, jsonl
#> 3 parquet TRUE  TRUE   parquet, pq
#> 4     rds TRUE  TRUE           rds
#> 5     xpt TRUE  TRUE    xpt, xport