# NOT RUN {
# valid term elements
valid_term(as.term(c("a", "a [3]", " b [ 1 ] ", "c[1,300,10]")))
# invalid term elements
valid_term(as.term(c("a b", "a[1]b", "a[0]", "b[1,]", "c[]", "d[1][2]")))
# }
Run the code above in your browser using DataLab