Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

24 lines
609B

  1. #! /usr/bin/env Rscript
  2. library(sass)
  3. library(fs)
  4. library(purrr)
  5. library(cliapp)
  6. source("R/make_functions.R")
  7. dir_create("dist")
  8. cli_alert_info("Prepping base16 themes...")
  9. dir_ls("src/palettes/base16/", regexp = "_base16.+scss") %>%
  10. walk(make_base16_theme)
  11. cli_alert_info("Compiling themes...")
  12. dir_ls("src", regexp = "^[^_].+\\.scss") %>%
  13. walk(render_sass)
  14. cli_alert_info('Installing themes to {path {path_home_r(".R", "rstudio", "themes")}}')
  15. dir_ls("dist", regexp = "\\.rstheme") %>%
  16. walk(cp_to_rstudio)
  17. cli_alert_success("Use {code {fun rstudioapi::applyTheme}} to enable the above themes")