소스 검색

Set make.R as RStudio project builder

base16
Garrick Aden-Buie 7 년 전
부모
커밋
b5cebbe62e
2개의 변경된 파일8개의 추가작업 그리고 2개의 파일을 삭제
  1. +5
    -2
      make.R
  2. +3
    -0
      rstudio-scss.Rproj

+ 5
- 2
make.R 파일 보기

@@ -20,8 +20,11 @@ cli_alert_success('Installing themes to {path {path_home_r(".R", "rstudio", "the
dir_ls("dist", regexp = "\\.rstheme") %>%
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}}")
rstudioapi::applyTheme(current_theme)
} else {

+ 3
- 0
rstudio-scss.Rproj 파일 보기

@@ -11,3 +11,6 @@ Encoding: UTF-8

RnwWeave: Sweave
LaTeX: pdfLaTeX

BuildType: Custom
CustomScriptPath: make.R

Loading…
취소
저장