Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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 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")

rlang

Functions for Base Types and Core R and 'Tidyverse' Features

v0.4.11
MIT + file LICENSE
Authors
Lionel Henry [aut, cre], Hadley Wickham [aut], mikefc [cph] (Hash implementation based on Mike's xxhashlite), Yann Collet [cph] (Author of the embedded xxHash library), RStudio [cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.