R/start_of_line.R
start_of_line.RdControl whether to match the expression only if it appears from the beginning of the line.
start_of_line(enable = TRUE)
| enable | Whether to enable this behavior, defaults to |
|---|
start_of_line(enable = TRUE)#> [1] "^"start_of_line(enable = FALSE) # create expression x <- start_of_line() %>% then("apple") grepl(x, "pineapple") # should be false#> [1] FALSE#> [1] TRUE