tstCodes <- grepInTable(
c('Iran', 'Christmas Island', 'eSwatini'))
answer <- c(Iran='IRN', 'Christmas Island' =
paste("Found row 53 of referenceTable with column 1 = ''"),
'eSwatini'="No match found for eSwatini")
# \dontshow{
stopifnot(
# }
all.equal(tstCodes, answer)
)
Run the code above in your browser using DataLab