#' onLoad
#'
#' Set resource path when package is called
#'
#' @noRd
.onLoad <- function(libname, pkgname) {
shiny::addResourcePath(
prefix = "iceComponents",
directoryPath = system.file(
"iceComponents",
package = "iceComponents"
)
)
}
#' onUnload
#'
#' Package cleanup
#'
#' @noRd
.onUnload <- function(libname, pkgname) {
shiny::removeResourcePath(prefix = "iceComponents")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.