a <- c("Yes please", "Not this one", "This is also good")
stringr::str_detect(a, "Yes")
#> [1] TRUE FALSE FALSE
stringr::str_detect(a, "Yes") | stringr::str_detect(a, "good")
#> [1] TRUE FALSE TRUE
stringr::str_detect(a, "Yes|good")
#> [1] TRUE FALSE TRUE
Created on 2022-08-30 by the reprex package (v2.0.1)