z <- try(findFn("spline", maxPages = 2))
if(!inherits(z, "try-error")){
# one row
z1 <- z[1,]
# one column
z.2 <- z[, 2]
#
z.2a <- z[2]
stopifnot(
all.equal(z.2, z.2a)
)
# data.frame with one column
z.2d <- z[, 2, drop=FALSE]
}
Run the code above in your browser using DataLab