R/ggiraphCssImport.R

Defines functions bootstrapCss normalizeCss ggiraphCss

Documented in bootstrapCss ggiraphCss normalizeCss

##' Convenience function to embed/bake ggiraph css directly into a created HTML file
##' 
##' * For ggiraph graphics: if not imported, saveHTML might to proprely import ggiraph css leading to responsiveness issues with IE
##' 
##' @rdname css_styles
##' @export
##' @examples
##' \dontrun{
##'   ggiraphCss()
##'   normalizeCss()
##'   bootstrapCss()
##' }
ggiraphCss <- function() {
  list.files(system.file("extdata", package="dqnTheme"), 'ggiraph.css', full.names = T)
}

##' Normalizer css: \url{https://necolas.github.io/normalize.css/}
##' @export
normalizeCss <- function() {
  list.files(system.file("extdata", package="dqnTheme"), 'normalize.css', full.names = T)
}

##' Bootstrap min css
##' @export
bootstrapCss <- function() {
  list.files(system.file("extdata", package="dqnTheme"), 'bootstrap.min.css', full.names = T)
}
d-qn/tamTheme documentation built on Feb. 8, 2023, 10:46 a.m.