rlang (version 0.2.2)

friendly_type: Format a type for error messages

Description

Format a type for error messages

Usage

friendly_type(type)

Arguments

type

A type as returned by type_of() or lang_type_of().

Value

A string of the prettified type, qualified with an indefinite article.

Life cycle

  • Like type_of(), friendly_type() is experimental.

Examples

# NOT RUN {
friendly_type("logical")
friendly_type("integer")
friendly_type("string")
# }