geomarker-io / codec

Community Data Explorer for Cincinnati
https://geomarker.io/codec/
GNU General Public License v3.0
4 stars 3 forks source link

`CODECtools::use_metadata_md()` #23

Closed cole-brokamp closed 1 year ago

cole-brokamp commented 1 year ago

function to prevent repeating this common pattern:

# save metadata to md file
options(knitr.kable.NA = "")
cat("#### Metadata\n\n", file = "metadata.md", append = FALSE)
glimpse_attr(st_drop_geometry(d)) |>
  knitr::kable() |>
  cat(file = "metadata.md", sep = "\n", append = TRUE)
cat("\n#### Schema\n\n", file = "metadata.md", append = TRUE)
glimpse_schema(st_drop_geometry(d)) |>
  knitr::kable() |>
  cat(file = "metadata.md", sep = "\n", append = TRUE)
cole-brokamp commented 1 year ago

or should we combine glimpse_attr() and glimpse_schema() into one function?

glimpse_tdr(), tdr_glimpse()?

should functions use a common prefix pattern tdr_?

cole-brokamp commented 1 year ago

closed in 812d6232a557bd737b392d7c282bf96320e9f692