Skip to contents

Thin wrapper around htmlwidgets::saveWidget() for the leaflet map returned by edr_map() or edr_explore(). With selfcontained = TRUE (the default), popup chart data and CSV download links live inside the file – no sidecar directory.

Usage

edr_save_html(map, file, selfcontained = TRUE, ...)

Arguments

map

A leaflet or htmlwidget.

file

Path to write to.

selfcontained

If TRUE, embed all assets in the file.

...

Forwarded to htmlwidgets::saveWidget().

Value

Invisibly returns file.