Procházet zdrojové kódy

Set make.R as RStudio project builder

base16
Garrick Aden-Buie před 7 roky
rodič
revize
b5cebbe62e
2 změnil soubory, kde provedl 8 přidání a 2 odebrání
  1. +5
    -2
      make.R
  2. +3
    -0
      rstudio-scss.Rproj

+ 5
- 2
make.R Zobrazit soubor

dir_ls("dist", regexp = "\\.rstheme") %>% dir_ls("dist", regexp = "\\.rstheme") %>%
walk(cp_to_rstudio) walk(cp_to_rstudio)


current_theme <- rstudioapi::getThemeInfo()$editor
if (current_theme %in% list_sassy_themes()) {
current_theme <- if (rstudioapi::hasFun("getThemeInfo")) {
rstudioapi::getThemeInfo()$editor
} else ""

if (current_theme != "" && current_theme %in% list_sassy_themes()) {
cli_alert_success("Reloading {strong {current_theme}}") cli_alert_success("Reloading {strong {current_theme}}")
rstudioapi::applyTheme(current_theme) rstudioapi::applyTheme(current_theme)
} else { } else {

+ 3
- 0
rstudio-scss.Rproj Zobrazit soubor



RnwWeave: Sweave RnwWeave: Sweave
LaTeX: pdfLaTeX LaTeX: pdfLaTeX

BuildType: Custom
CustomScriptPath: make.R

Načítá se…
Zrušit
Uložit