tests/testthat/test-as.R

context("coercing objects")

test_that("as.list is working", {
  expect_is(as(Kenya_veg, "list"), "list")
  expect_is(as(Kenya_veg@coverconvert, "list"), "list")
})

Try the vegtable package in your browser

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

vegtable documentation built on March 31, 2023, 10:33 p.m.