# logical of length 1
qtest(NA, "b1")
# logical of length 1, NA not allowed
qtest(NA, "B1")
# logical of length 0 or 1, NA not allowed
qtest(TRUE, "B?")
# numeric with length > 0
qtest(runif(10), "n+")
# integer with length > 0, NAs not allowed, all integers >= 0 and < Inf
qtest(1:3, "I+[0,)")
# either an emtpy list or a character vector with <=5 elements
qtest(1, c("l0", "s<=5"))
# data frame with at least one column and no missing value in any column
qtest(iris, "D+")
Run the code above in your browser using DataLab