R/init.R

.global <- new.env()

initResourcePaths <- function() {
  if (is.null(.global$loaded)) {
    shiny::addResourcePath(
      prefix = 'shinyGlobe',
      directoryPath = system.file('www', package='shinyGlobe'))
    .global$loaded <- TRUE
  }
  HTML("")
}
trestletech/shinyGlobe documentation built on May 31, 2019, 7:50 p.m.