Description Usage Arguments Details Value References Examples
View source: R/str_detect_unbalanced.R
Detects whether strings contain unbalanced quites
1 | str_detect_unbalanced(string, quotes = c("'", "\""))
|
string |
character; string |
quotes |
character; characters used for quiting |
Determines whether there are unb Unbalanced quotes are determined by an odd number of quotes once all escaped quotes are removed.
logical
Stackoverflow
1 2 3 4 5 | str_detect_unbalanced( character(0) ) # locical(0)
str_detect_unbalanced( "" ) # FALSE
str_detect_unbalanced( "'" ) # TRUE
"foo \\' bar" %>% cat
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.