tests/testthat/test-srs_geodetecor.R

test_that("test whether srs_factor_detector function works well", {
  data('srs_table')
  data('srs_wt')
  srsfd = srs_factor_detector(srs_table$d,srs_table$a1,srs_wt)
  srsfd = lapply(srsfd, round, 6)
  expect_equal(srsfd,
               list(PD = 0.459524,
                    SE_PD = 3.282169))
})

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.