R/get-ace-themes.R

#' Get available themes
#' 
#' Gets all of the available \code{themes} available in the installed version
#' of shinyAce. Themes determine the styling and colors used in the editor.
#' @author Jeff Allen \email{jeff@@trestletech.com}
#' @export
getAceThemes <- function(){
  themes <- dir(system.file('www/ace', package='shinyAce'), "^theme-.*.js$")
  themes <- sub("^theme-(.*).js$", "\\1", themes)
  themes
}
skranz/shinyAce2 documentation built on May 30, 2019, 3:02 a.m.