fork(1) download
  1. library(dplyr)
  2. library(stringr)
  3.  
  4. str <- "THE QUEEN'S HAND"
  5. nchar(str) < 2 || ! str_detect(str, "[[:lower:]]")
  6.  
  7. str <- "##45$&%&3#"
  8. nchar(str) < 2 || ! str_detect(str, "[[:lower:]]")
  9.  
  10. str <- "a"
  11. nchar(str) < 2 || ! str_detect(str, "[[:lower:]]")
  12.  
  13. str <- "THE QUEEN's HAND"
  14. nchar(str) < 2 || ! str_detect(str, "[[:lower:]]")
Success #stdin #stdout #stderr 0.53s 51204KB
stdin
Standard input is empty
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