All Projects → gadenbuie → yule-rstudio

gadenbuie / yule-rstudio

Licence: other
⛄️🎄🖥 A Holiday Theme for RStudio

Yule RStudio ☃️ 🎄 🎁

A Holiday Theme for RStudio

🎅 🤶 'Tis the season to be jolly!

Bring yuletide cheer and seasons greetings to your favorite R IDE. Based on the Yule tmTheme and modified to fit in well with RStudio Dark Mode. It's surprisingly pleasant and merrily festive!

Featuring magical additions such as a candy cane style line highlight and a blinking Christmas-light cursor:

Installation

You'll need RStudio version 1.2. Grab the preview version here.

  1. Run the following code in RStudio to download and apply the theme.

    yule_theme <- fs::path_temp("Yule-RStudio", ext = "rstheme")
    download.file("https://git.io/yule-rstudio", yule_theme)
    rstudioapi::addTheme(yule_theme, apply = TRUE)
  2. Make a cup of hot coco,

    📻 turn on SomaFM's Christmas Lounge,

    💻 and enjoy coding by the open fire.

Manual Installation

If the steps above don't work, you can manually download the Yule-RStudio.rstheme file and place it in .R/rstudio/themes in your R home directory (see path.expand("~")). Then, in the RStudio appearance settings, select the Yule RStudio editor theme.

Disclaimer: This theme may waste some CPU cycles in the spirit of the holidays!

This theme adds an animation to the regular and vim normal mode cursors that may increase your CPU usage. To disable animations, edit the theme file in ~/.R/rstudio/themes/Yule-RStudio.rstheme

rstudioapi::navigateToFile(
  fs::path_home_r(".R", "rstudio", "themes", "Yule-RStudio.rstheme")
)

Find the CSS blocks for .ace_cursor and .normal-mode .ace_cursor and comment out the lines starting with animation-*.

.ace_cursor {
  color: #ff0010;
  /*
  animation-name: xmas-colors;
  animation-duration: 30s;
  animation-iteration-count: infinite;
  animation-timing-function: steps;
  */
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].