Nothing
# ------------------------------------------------------------------------------
# invalid_remove()
test_that("can remove invalid dates from calendar types", {
x <- year_month_day(2020, 2, 28:30)
expect_identical(invalid_remove(x), x[1:2])
x <- year_day(2019, 365:366)
expect_identical(invalid_remove(x), x[1L])
})
test_that("errors on unsupported types", {
expect_snapshot(error = TRUE, invalid_remove(1))
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.