ensure_list: Turns any object into a list

View source: R/utils.R

ensure_listR Documentation

Turns any object into a list

Description

See above.

Usage

ensure_list(x)

Arguments

x

any input.

Value

x turned into a list.

See Also

Other tidyfun developer tools: prep_plotting_arg(), unique_id()

Examples

ensure_list(1:3)
ensure_list(list(1, 2))

tf documentation built on April 7, 2026, 5:07 p.m.