remotes::install_github("schloerke/viztest")
# source("scripts/viztest.R")
# compare to leaflet.js v0.7.x
# viztest::viztest(".", "rstudio/leaflet@d489e2c", resize = FALSE, stomp = TRUE)
viztest::viztest(
".",
"leaflet",
output_dir = paste(
"../viztest",
devtools::as.package(".")$package,
devtools::as.package(".")$version,
sep = "-"
),
resize = FALSE,
stomp = TRUE
)
# viztest::viztest(".", "rstudio/leaflet", resize = FALSE, stomp = TRUE, skip_old = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.