# NOT RUN {
is_uniq(1:10)
is_uniq(c(1,1,2,3), c(1,2,2,3))
# }
# NOT RUN {
# returns FALSE where a "5" appears
is_uniq(c(1:10, 5))
# }
# NOT RUN {
library(magrittr)
# }
# NOT RUN {
# this fails 4 times
mtcars %>% assert(is_uniq, qsec)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab