# NOT RUN {
##
## 1. NULL
## -
null <- createX2matchY(NULL, NULL)
# check
# }
# NOT RUN {
all.equal(null, NULL)
# }
# NOT RUN {
##
## 2. logical
##
lgcl3 <- createX2matchY(NULL,
c(FALSE, TRUE, FALSE))
# check
# }
# NOT RUN {
all.equal(lgcl3, logical(3))
# }
# NOT RUN {
##
## 3. integer
##
int3 <- createX2matchY(integer(0),
c(FALSE, TRUE, FALSE))
# check
# }
# NOT RUN {
all.equal(int3, integer(3))
# }
# NOT RUN {
##
## 4. list -> character
##
ch3 <- createX2matchY(integer(0),
list(a=1, b=2, c=3))
# check
# }
# NOT RUN {
all.equal(ch3, character(3))
# }
Run the code above in your browser using DataLab