#' 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)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.