# NOT RUN {
anyOutside(1:10, 1L, 10L)
anyOutside(1:10, 1L, 7L)
# na_is_outside = NA
anyOutside(c(1:10, NA), 1L, 7L) # Already outside before the NA
anyOutside(c(NA, 1:10, NA), 1L, 7L) # NA since it occurred first
anyOutside(c(1:7, NA), 1L, 7L, na_is_outside = FALSE)
anyOutside(c(1:7, NA), 1L, 7L, na_is_outside = TRUE)
# }
Run the code above in your browser using DataLab