Cast an iface
to a plain list.
Usage
# S3 method for class 'iface'
as.list(x, ..., flatten = FALSE)
Examples
my_iface = iface(
col1 = integer + group_unique ~ "an integer column"
)
as.list(my_iface, flatten=TRUE)
#> $groups
#> character(0)
#>
#> $allow_other
#> [1] TRUE
#>
#> $has_default
#> [1] FALSE
#>
#> $default
#> NULL
#>
#> $columns
#> $columns[[1]]
#> $columns[[1]]$name
#> [1] "col1"
#>
#> $columns[[1]]$type
#> [1] "integer + group_unique"
#>
#> $columns[[1]]$doc
#> [1] "an integer column"
#>
#>
#>