# NOT RUN {
# check the example hexlet formats
is.xlt(xltIDexample()) # TRUE TRUE TRUE TRUE TRUE
# check one invalid format
is.xlt("2.718281828459045235360287471353") # FALSE
# check a valid hexlet, an invalid hexlet, and an NA.
# Map input NA to NA, not to FALSE.
is.xlt(c("0c46:0ed3:b015:adc2:ab4a:01e0:9336:4f1f", # IPv6
"c46:ed3:b015:adc2:ab4a:1e0:9336:4f1f", # IPv6 abbreviated format
NA), na.map = NA) # TRUE FALSE NA
# }
Run the code above in your browser using DataLab