# read raw tsv, trim the character columns and remove empty columns
energy_product_types <- fs::path("data-raw",
"energy_product_types",
ext = "tsv") |>
data.table::fread(encoding = "UTF-8") |>
dplyr::mutate(CODE = as.character(CODE)) |>
purrr::modify_if(is.character, trimws, which = "both") |>
purrr::discard(~is.na(.x) |> all())
# save the package data in the correct format
usethis::use_data(energy_product_types, overwrite = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.