Convert a list to a single character, preserving names

prettify_list(x)

Arguments

x

Named list.

Value

character

Examples

prettify_list(list(a = 1, b = 2, c = 3))
#> [1] "a=1, b=2, c=3"
# "a=1, b=2, c=3"