dot-spec_inform_unspecified: Inform about or error for unspecified fields

.spec_inform_unspecifiedR Documentation

Inform about or error for unspecified fields

Description

Inform about or error for unspecified fields

Usage

.spec_inform_unspecified(spec, unspecified = "inform", call = caller_env())

Arguments

spec

(tspec) A specification of how to convert x. Generated with tspec_df(), tspec_row(), tspec_object(), tspec_recursive(), or guess_tspec(). If spec is NULL (the default), guess_tspec(x, inform_unspecified = TRUE) will be used to guess the spec.

unspecified

(character(1)) What to do with tib_unspecified() fields. Can be one of

  • "error": Throw an error.

  • "inform": Inform the user then parse as with tib_variant().

  • "drop": Do not parse these fields.

  • "list": Parse unspecified fields into lists as with tib_variant().

call

(environment) The environment to use for error messages.

Value

The original spec, invisibly.


tibblify documentation built on May 9, 2026, 5:07 p.m.