#7 install script

오픈
garrick7 년 전을 오픈 · 0개의 코멘트
garrick 코멘트됨, 7 년 전
branch <- "master"
base_url <- glue::glue("https://git.garrickadenbuie.com/garrick/rstudio-scss/raw/branch/{branch}")

source(glue::glue("{base_url}/R/make_functions.R"))

themes <- c(
  "nord-polar-night-aurora", 
  "nord-snow-storm",
  "oceanic-plus", 
  "one-dark",
  "one-light",
  "solarized-dark",
  "solarized-light")

theme_names <- c()

for (theme in themes) {
  url <- glue::glue("{base_url}/dist/{theme}.rstheme")
  tmpfile <- fs::path_temp(fs::path(theme, ext = "rstheme"))
  download.file(url, tmpfile)
  unlink(fs::path_home_r(".r", "rstudio", "themes", fs::path_file(tmpfile)))
  rstudioapi::addTheme(tmpfile)
  theme_names <- c(theme_names, get_theme_name(tmpfile))
}

cat("Use:\n")
cat(glue::glue('- rstudioapi::applyTheme("{theme_names}")'), sep = "\n")
```r branch <- "master" base_url <- glue::glue("https://git.garrickadenbuie.com/garrick/rstudio-scss/raw/branch/{branch}") source(glue::glue("{base_url}/R/make_functions.R")) themes <- c( "nord-polar-night-aurora", "nord-snow-storm", "oceanic-plus", "one-dark", "one-light", "solarized-dark", "solarized-light") theme_names <- c() for (theme in themes) { url <- glue::glue("{base_url}/dist/{theme}.rstheme") tmpfile <- fs::path_temp(fs::path(theme, ext = "rstheme")) download.file(url, tmpfile) unlink(fs::path_home_r(".r", "rstudio", "themes", fs::path_file(tmpfile))) rstudioapi::addTheme(tmpfile) theme_names <- c(theme_names, get_theme_name(tmpfile)) } cat("Use:\n") cat(glue::glue('- rstudioapi::applyTheme("{theme_names}")'), sep = "\n") ```
로그인하여 이 대화에 참여
레이블 없음
마일스톤 없음
No Assignees
참여자 1명
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
취소
저장
아직 콘텐츠가 없습니다.