You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 line
473B

  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("Compiling themes...")
  9. dir_ls("src", regexp = "^[^_].+\\.scss") %>%
  10. walk(render_sass)
  11. cli_alert_info('Installing themes to {path {path_home_r(".R", "rstudio", "themes")}}')
  12. dir_ls("dist", regexp = "\\.rstheme") %>%
  13. walk(cp_to_rstudio)
  14. cli_alert_info("Use {code {fun rstudioapi::applyTheme}} to enable the above themes")