tests/testthat/test-data_type.R

test_that("data.frame works", {
  expect_no_error({
    data("ndvi")
    g = opgd(NDVIchange ~ ., data = as.data.frame(ndvi),
             discvar = c("Tempchange","Precipitation","GDP","Popdensity"),
             discnum = 3:6, cores = 1)
  })
})

Try the gdverse package in your browser

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

gdverse documentation built on April 3, 2025, 8:40 p.m.