poissonconsulting / poisdata

An R package of Poisson Consulting's data handling functions
https://poissonconsulting.github.io/poisdata/
Other
0 stars 2 forks source link

Transferred `duplicate()` to tidyplus #26

Closed dunkenwg closed 3 months ago

dunkenwg commented 3 months ago
dunkenwg commented 3 months ago

Did not add:

test_that("ps_duplicates() gives deprecation message", {
  expect_warning(
    ps_duplicates(data.frame(x = 1:2, y = 1:2)),
    regexp = "was deprecated"
  )
})

as warnings are only issued once every 8 hours. This test will fail unless it is the first time ps_duplicates() has been called in 8 hours.

dunkenwg commented 3 months ago

Thanks @joethorley! The tests should be good to go now.

dunkenwg commented 3 months ago

No worries!