R/themes.R

Defines functions get_current_editor_theme

Documented in get_current_editor_theme

#' Get the current rstudio editor theme
#'
#' @return Name of the current rstudio theme being used.
#' @export
#'
#' @examples
#' \dontrun{
#' get_current_editor_theme
#' }
get_current_editor_theme <- function() {
  rstudioapi::getThemeInfo()$editor
}
murraycadzow/rsTeachMode documentation built on Oct. 20, 2020, 6:36 a.m.