Skip to contents

Several named fields that belong together, each a type or a sentence (text, described), as in ai(). Records come back as tibble columns (tidyr::unpack() spreads them). A record holds only the members it names: a tibble given for one with another column is refused, never sent, so select the record's columns first (dplyr::select()).

Usage

record(...)

Arguments

...

Fields, as name = type.

Value

A field.

Examples

record(order_id = optional("a letter, a dash and four digits"), days_waiting = described(integer(), "whole days"))
#> <functai field> record of order_id, days_waiting