R/pwacompat-dependencies.R

Defines functions add_pwacompat_deps

Documented in add_pwacompat_deps

#' pwacompat dependencies utils
#'
#' @description This function attaches pwacompat. dependencies to the given tag
#'
#' @param tag Element to attach the dependencies.
#'
#' @importFrom htmltools tagList htmlDependency
#' @export
add_pwacompat_deps <- function(tag) {
 pwacompat_deps <- htmlDependency(
  name = "pwacompat",
  version = "2.0.17",
  src = c(file = "pwacompat-2.0.17"),
  script = "js/pwacompat.min.js",
  package = "IAMDynasam",
 )
 tagList(tag, pwacompat_deps)
}
    
Dynasam/IAMDynasam documentation built on Dec. 17, 2021, 5:36 p.m.