R: Format a type for error messages

friendly_type {rlang} | R Documentation

## Format a type for error messages

### Description

Format a type for error messages

### Usage

    friendly_type(type)

### Arguments

`type` | A type as returned by `typeof()`.

### Value

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

### Life cycle

- `friendly_type()` is experimental.

### Examples

    friendly_type("logical")
    friendly_type("integer")
    friendly_type("string")

[Package rlang version 0.4.5 Index]