tarensanders / rstudio-one-dark-pro-theme

A 'Total IDE' build of the One Dark Pro theme for RStudio

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

One Dark Pro for RStudio

A 'Total IDE' build of the One Dark Pro theme for RStudio!

Installation

FIRST: In RStudio, go to Global Options -> Appearance and ensure either Modern or Sky are selected as the RStudio Theme at the top

Automatic

Run the following snippet in the RStudio Console:

rstudioapi::addTheme('https://raw.githubusercontent.com/johnnybarrels/rstudio-one-dark-pro-theme/master/OneDarkPro.rstheme', apply=TRUE, force=TRUE)

Note that this will override any other theme named 'One Dark Pro' you may have (this can be controlled by removing the force=True argument).

If you get the error:

Error in loadNamespace(name) : there is no package called 'rstudioapi'

run install.packages('rstudioapi') and try again.

Manual

  • Download the OneDarkPro.rstheme file from this repository (or clone)
  • In RStudio go to Global Options -> Appearance, and click the Add... button under Editor Theme
  • Navigate to the downloaded OneDarkPro.rstheme file, hit Open and you're good to go

Info

This theme was adapted from this theme, many thanks to Patrick for working out how to theme more than just the code editor in RStudio!

Note: There can be versioning issues with some of the various UI components (different item class codes etc). These usually present themselves as parts of the UI with white text on a white background. If you do run into any UI issues, feel free to look through the issues listed here or create a new one for me to take a look at.

This theme has been tested and is fully functional on:

macOS Catalina 10.15.6, RStudio 1.4.750
macOS Catalina 10.15.6, RStudio 1.4.1010

and

Windows 10, RStudio 1.2.5033

The editor font I use is Fira Code, and the majority of the UI font is Open Sans. It is not necessary to install these.

If you have any suggested improvements, let me know here!

About

A 'Total IDE' build of the One Dark Pro theme for RStudio

License:MIT License