Remove NULL elements from a list
compact_list.RdDrops any NULL entries from a named list. Useful for assembling
filter or body lists before passing them to API helpers.
Examples
compact_list(list(a = 1, b = NULL, c = "x"))
#> $a
#> [1] 1
#>
#> $c
#> [1] "x"
#>