library( dplyr)
library( stringr)
str <- "THE QUEEN'S HAND"
nchar( str) < 2 || ! str_detect( str, "[[:lower:]]" )
str <- "##45$&%&3#"
nchar( str) < 2 || ! str_detect( str, "[[:lower:]]" )
str <- "a"
nchar( str) < 2 || ! str_detect( str, "[[:lower:]]" )
str <- "THE QUEEN's HAND"
nchar( str) < 2 || ! str_detect( str, "[[:lower:]]" )
bGlicmFyeShkcGx5cikKbGlicmFyeShzdHJpbmdyKQoKc3RyIDwtICJUSEUgUVVFRU4nUyBIQU5EIgpuY2hhcihzdHIpIDwgMiB8fCAhIHN0cl9kZXRlY3Qoc3RyLCAiW1s6bG93ZXI6XV0iKQoKc3RyIDwtICIjIzQ1JCYlJjMjIgpuY2hhcihzdHIpIDwgMiB8fCAhIHN0cl9kZXRlY3Qoc3RyLCAiW1s6bG93ZXI6XV0iKQoKc3RyIDwtICJhIgpuY2hhcihzdHIpIDwgMiB8fCAhIHN0cl9kZXRlY3Qoc3RyLCAiW1s6bG93ZXI6XV0iKQoKc3RyIDwtICJUSEUgUVVFRU4ncyBIQU5EIgpuY2hhcihzdHIpIDwgMiB8fCAhIHN0cl9kZXRlY3Qoc3RyLCAiW1s6bG93ZXI6XV0iKQ==
stdout
[1] TRUE
[1] TRUE
[1] TRUE
[1] FALSE
stderr
Attaching package: ‘dplyr’
The following objects are masked from ‘package:stats’:
filter, lag
The following objects are masked from ‘package:base’:
intersect, setdiff, setequal, union