tests/testthat/test-utils.R

context("utils")

test_that("warns if all dates are missing", {
  c1 <- fgeo.x::tree5
  c2 <- fgeo.x::tree6
  c1$date <- NA
  c2$date <- NA
  expect_warning(time_diff(c1, c2), "all missing")
})

Try the fgeo.analyze package in your browser

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

fgeo.analyze documentation built on Dec. 5, 2020, 9:06 a.m.