.onLoad <- function(libname, pkgname) {
# assure proper value for "tracks" resource path
rp <- shiny::resourcePaths()
if ("tracks" %in% names(rp)) {
shiny::removeResourcePath("tracks")
}
shiny::addResourcePath("tracks", get_tracks_dir())
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.