Skip to content
An RStudio Theme inspired by Apple's dark aestheticcc.
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Demo Images and Gifs Add files via upload Sep 20, 2019
.gitattributes Initial commit Sep 16, 2019
LICENSE Initial commit Sep 16, 2019
Mojave Dark (Static).rstheme Update Mojave Dark (Static).rstheme Oct 11, 2019
Mojave Dark.rstheme Update Mojave Dark.rstheme Oct 11, 2019
README.md Update README.md Oct 6, 2019

README.md

Mojave Dark: An RStudio Theme for Apple Lovers

Dark styles across the entire IDE, not just the editor:

Dynamic darkening of plots and markdown:

Plot (white to alpha) Markdown (invert colors)

An Xcode-inspired debugger:

Code coloring inspired by Xcode:

Mojave Dark Xcode

Installation Options

Via the RStudio Console (Reccomended):

In RStudio Preferences > Appearance, set the theme to Modern or Sky. Currently, Mojave Dark doesn't work when the RStudio theme is set to Classic. Then, run the snippet in the RStudio console to install and apply Mojave Dark.

rstudioapi::addTheme("https://raw.githubusercontent.com/patrickshox/Mojave-Dark-RStudio-Theme/master/Mojave%20Dark.rstheme", apply=TRUE, force=TRUE)
rstudioapi::addTheme("https://raw.githubusercontent.com/patrickshox/Mojave-Dark-RStudio-Theme/master/Mojave%20Dark%20(Static).rstheme", apply=TRUE, force=TRUE)

The parameter force=TRUE will delete any other themes named "Mojave Dark" and the parameter globally=TRUE will install the theme for all users. This will also install a static version, "Mojave Dark (Static)", which does not dynamically darken plots and markdown.

Manually:

First, either download the .rstheme file via Google Drive or download it by downloading this entire repository. Navigate to RStudio options (⌘ ,), then select the "Appearance" tab in the sidebar. Press the "Add..." button to manually install the .rstheme file. Finally, apply the theme as you would any other. If you'd like to also install a version that does not dynamically darken plots and markdown, you can download the "Mojave Dark (Static)" .rstheme file via Google Drive.

Troubleshooting

  • Error in value[[3L]](cond): Unable to add the theme file "/var/folders/tj/w1l6l2hj11l4kpyhv4r2p6gh0000gn/T//RtmpZTjGp2/Mojave Dark.rstheme". The specified theme, "Mojave Dark", already exists in the target location. Please delete the existing theme and try again.

Go to the Folder (⌘ ⇧ G) ~/.R/rstudio/themes and delete the file "Mojave Dark.rstheme". Then retry installing Mojave Dark.

  • Error in loadNamespace(name) : there is no package called ‘rstudioapi’

Run install.packages("rstudioapi"). Then retry installing Mojave Dark.

You can’t perform that action at this time.