Skip to contents

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)
#> [[1]]
#> [1] 1 2 3
#> 
ensure_list(list(1, 2))
#> [[1]]
#> [1] 1
#> 
#> [[2]]
#> [1] 2
#>