tests/testthat/test-as.R

test_that("as.data.frame2 fails on inconsistent lengths", {
  expect_error(as.data.frame2(list(a=1,b=2:3)))
})

Try the unglue package in your browser

Any scripts or data that you put into this service are public.

unglue documentation built on July 1, 2020, 5:46 p.m.