vctrs icon indicating copy to clipboard operation
vctrs copied to clipboard

Give `list_check_all_vectors()` and `list_all_vectors()` an `allow_null` argument

Open DavisVaughan opened this issue 2 years ago • 2 comments

Default to FALSE, but gives us the flexibility to use it in tidyr where we expect that the list should contain:

  • Vectors
  • NULL values that we eventually do something with (drop or promote to size 1 NAs)

DavisVaughan avatar Jan 06 '23 15:01 DavisVaughan

Or maybe call it allow_missing since this is a list and NULL is the missing type

DavisVaughan avatar Jan 06 '23 15:01 DavisVaughan

Might also make sense for list_check_all_size() and list_all_size() too

DavisVaughan avatar Jan 06 '23 15:01 DavisVaughan