# NOT RUN {
Names <- c('Raul', 'Ra`l', 'Torres,Raul', 'Torres, Raul')
# confusion in character sets can create
# names like Names[2]
chk <- grepNonStandardCharacters(Names)
# }
# NOT RUN {
all.equal(chk, 2)
# }
# NOT RUN {
chkv <- grepNonStandardCharacters(Names, TRUE)
# }
# NOT RUN {
all.equal(chkv, 'Ra`l')
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab