Helper function for globbing character vectors
Examples
x <- c("apple", "banana", "peach", "pear", "orange")
glob(x, "*e")
#> [1] "apple" "orange"
glob(x, "pea*", value = FALSE)
#> [1] 3 4
glob(x, "*an*", value = NA)
#> [1] FALSE TRUE FALSE FALSE TRUE
path <- system.file("R", package = "mark")
glob(list.files(path), "r*")
#> character(0)