test_that("odkc_dist_as_tndo works", {
data("odkc_data", package = "wastdr")
data("wastd_data", package = "wastdr")
odkc_names <- odkc_data$dist %>%
odkc_dist_as_tndo() %>%
dplyr::select(-source, -source_id) %>%
names()
# ODKC data transformed into TSC shape should contain all fields of the
# WAStD serializer
for (n in odkc_names) {
testthat::expect_true(
n %in% names(wastd_data$nest_dist),
label = glue::glue("Column \"{n}\" exists in wastd_data$nest_dist")
)
}
})
# usethis::use_r("odkc_dist_as_tndo")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.