Skip to contents

Like type_of(), but a scalar also shows its value – which is usually the thing the reader needs.

Usage

.got(x)

Arguments

x

Any R value.

Value

A single string.

Examples

rdantic:::.got(1.5)
#> [1] "num[1] 1.5"
rdantic:::.got(c(1, 2))
#> [1] "num[2]"