R/dependencies.R

Defines functions leaftimeDependency

Documented in leaftimeDependency

#' 'Leaflet.timeline' Dependencies
#'
#' @return \code{htmltools::htmlDependency}
#' @export

leaftimeDependency <- function() {
  list(
    htmltools::htmlDependency(
      name = "Leaflet.timeline",
      version = "1.2.1",
      src = c(file = "www/"),
      script = c(
        "Leaflet.timeline/leaflet.timeline.js",
        "binding/leaftime-binding.js"
      ),
      style = "binding/leaftime-binding.css",
      package = "leaftime",
      all_files = FALSE
    )
  )
}

Try the leaftime package in your browser

Any scripts or data that you put into this service are public.

leaftime documentation built on Jan. 26, 2020, 5:06 p.m.