Add and filter (un)done files in a data frame
Examples
data <- tibble::tibble(file = c(
withr::local_tempdir(pattern = "exists_"),
withr::local_tempfile(pattern = "doesnt_exist_")
))
data
#> # A tibble: 2 × 1
#> file
#> <chr>
#> 1 /tmp/RtmpgmEn6Z/exists_18af7f92488b
#> 2 /tmp/RtmpgmEn6Z/doesnt_exist_18af62529db
pick_undone(data)
#> # A tibble: 1 × 2
#> file done
#> <chr> <lgl>
#> 1 /tmp/RtmpgmEn6Z/doesnt_exist_18af62529db FALSE