R/utils.R
positionSpaceOutsideSinglequotes.Rd
(vectorised) Detect the position of space in a string not within a pair of single quotes
positionSpaceOutsideSinglequotes(string)
A chracter vector
A integer vector of positions
# \donttest{ tidyrules:::positionSpaceOutsideSinglequotes(c("hello", "hel' 'o "))#> [[1]] #> integer(0) #> #> [[2]] #> [1] 8 #> # }