dot-spec_replace_unspecified: Replace unspecified fields in the specification

.spec_replace_unspecifiedR Documentation

Replace unspecified fields in the specification

Description

Replace unspecified fields in the specification

Usage

.spec_replace_unspecified(spec, unspecified)

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().

Value

A modified tibblify specification.


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