Nothing
if (exists("testing")) { indent = '#' # ugly hack so _regression_summary can be "spun" (variables included via `r ` have to be available) results = data("bfi") metadata(results)$description <- data_description_default(bfi) } meta <- metadata(results) description <- meta$description meta <- recursive_escape(meta)
r indent
# Metadata
r indent
## Description
if (exists("name", meta)) { glue::glue( "__Dataset name__: {name}", .envir = meta) }
cat(description)
Metadata for search engines
if (exists("temporalCoverage", meta)) { glue::glue( "- __Temporal Coverage__: {temporalCoverage}", .envir = meta) }
if (exists("spatialCoverage", meta)) { glue::glue( "- __Spatial Coverage__: {spatialCoverage}", .envir = meta) }
if (exists("citation", meta)) { glue::glue( "- __Citation__: {citation}", .envir = meta) }
if (exists("url", meta)) { glue::glue( "- __URL__: [{url}]({url})", .envir = meta) }
if (exists("identifier", meta)) { if (stringr::str_detect(meta$identifier, "^doi:")) { meta$identifier <- paste0('<a href="https://dx.doi.org/', stringr::str_match(meta$identifier, "^doi:(.+)")[,2], '">', meta$identifier, '</a>') } glue::glue( "- __Identifier__: {identifier}", .envir = meta) }
if (exists("datePublished", meta)) { glue::glue( "- __Date published__: {datePublished}", .envir = meta) }
if (exists("creator", meta)) { cat("- __Creator__:") knitr::kable(tibble::enframe(meta$creator)) }
meta <- meta[setdiff(names(meta), c("creator", "datePublished", "identifier", "url", "citation", "spatialCoverage", "temporalCoverage", "description", "name"))] if(length(meta)) { knitr::kable(meta) }
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.