Build a dataspice site
Usage
build_site(
path = file.path("data", "metadata", "dataspice.json"),
template_path = system.file("template.html5", package = "dataspice"),
out_path = file.path("docs", "index.html"),
static_map = FALSE,
static_map_method = "default"
)Arguments
- path
(character) Path to a JSON+LD file with dataspice metadata
- template_path
(character) Optional. Path to a template for
whisker.render- out_path
(character) Optional. Path to write the site's
index.htmlto. Defaults todocs/index.html.- static_map
(logical) Use a self-contained static map image instead of the default Leaflet map. Defaults to
FALSE. The image includes latitude and longitude graticules and an Equal Earth locator inset. This argument is experimental and may change.- static_map_method
(character) Projection for the static map. Defaults to the built-in extent-aware method
"default". Other choices are"crsuggest","projwiz","equalearth", or a custom PROJ string beginning with"+proj=". This argument is experimental and may change.
