Skip to contents

Recursively flattens a nested list into a single-row tibble. Nested lists that cannot be further flattened are kept as list-columns.

Usage

flatten_response(x)

Arguments

x

A named list from an API response.

Value

A single-row tibble::tibble().

Examples

if (FALSE) { # \dontrun{
herb <- get_herb("UNITCM_H001")
flatten_response(herb)
} # }