Is there anyway to change the color schemes for Rstudio? It comes with 6 or 7 default, pre-packaged themes. I'm wondering if theres anyway for me to customize these or some add-in that lets me make my own.
In the menu bar, open the “Tools” menu. From the drop down menu, choose “Global Options”. In the pane on the left hand side of the options window, click “Appearance”. To import a theme, click on the “Add…” button.
In R, colors can be specified either by name (e.g col = “red”) or as a hexadecimal RGB triplet (such as col = “#FFCC00”). You can also use other color systems such as ones taken from the RColorBrewer package.
There's a much faster way to deal with this and 100% doable.
Open RStudio with your favourite Editor theme and open an .R
script
Inspect the Source layout (Right-click>Inspect) and Ctrl + f an unique class selector such as .ace_comment
. In the matched CSS rules box in the side pane copy an attribute as unique as possible (i.e. color: #0088FF;
I use Cobalt theme).
Go to RStudio's install path and dive into /www/rstudio/
. As jorloff rightly said, you'll find a bunch of files like this: VERYUGLYNAME.cache.css
. Open all of them with your favourite text editor as administrator.
Find in files: Ctrl+ Shift + f (in sublime text) and type the unique attribute value you previously chosed. BOOM, there you have it.
Now delight yourself editing your crazy style, but remember to back it up first!
As Jonathan said, RStudio's editor is based on ACE themes, so all clases have the ace_
prefix. Take your time inspecting and understanding the editor hierarchy. I recommend you to take some time inspecting the html code to understand its structure. The editor starts in id="rstudio_source_text_editor"
I'm using RStudio Desktop 0.99.892 Release for Windows
Unfortunately there's not currently a way to do this. RStudio's themes are based on themes for the ACE text editor, which it embeds. It can generate internal themes based on ACE themes, so if you have an ACE theme you'd really like to use with RStudio, you can submit a pull request to RStudio (which is hosted on GitHub) for consideration.
i am new to R Studio and i would like to share how i was able to customize the color scheme of R Studio:
How to change the color of comments in Rstudio
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With