str_detect not implemented #120
Comments
What do you expect it to do? |
The same as grepl(). Return TRUE if the string is a character (or even always TRUE). |
Some examples
The last two are more a result of implicit casting to character of the string argument. |
It's more important for stringr to be internally consistent than to be consistent with base R functions. Currently stringr takes |
@gagolews do you have any thoughts the correct behaviour for "detecting" boundaries? |
IMO an error is a fine behavior in such a case. problematic when '' is hidden in a variable -- The error message may be confusing:
why not replacing |
Returns a not implemented error. More difficult to find when
''
is hidden in a variable.The text was updated successfully, but these errors were encountered: