rsthemes icon indicating copy to clipboard operation
rsthemes copied to clipboard

Testing and Feedback Wanted!

Open gadenbuie opened this issue 5 years ago • 25 comments

I'd love feedback and help testing the themes! Please leave a comment here if you try out the themes and find any issues or have any suggestions.

Here's how to install and use the themes.

# install the package
devtools::install_github("gadenbuie/rsthemes")

# There are several hand-crafted themes based on ported color schemes
# and there are many `base16` themes.
# 
# Install everything...
rsthemes::install_rsthemes()

# or skip install of base16 themes (there are a lot and not all are great)
rsthemes::install_rsthemes(include_base16 = FALSE)

# list installed themes
rsthemes::list_rsthemes()
rsthemes::list_rsthemes("light")
rsthemes::list_rsthemes("dark")

# Try all themes
rsthemes::try_rsthemes()

# Try just the light themes
rsthemes::try_rsthemes("light")

# Use a theme
rstudioapi::applyTheme("One Dark {rsthemes}")

And, finally, if you want to uninstall the themes

rsthemes::remove_rsthemes()

gadenbuie avatar Jun 14 '19 14:06 gadenbuie

Hey, Garrick, I liked this package and the themes it offered! Thank you for that.

The try_rsthemes() function worked fine by changing the themes with the [enter] option. But the [k] and [q] options on the console did not work. I needed to press Esc on the console to quit the function and apply the theme.

I hope this helps you.

kguidonimartins avatar Jun 28 '19 10:06 kguidonimartins

Hi @kguidonimartins, thanks for the feedback! Did you push enter after k or q? I realize now the prompt makes it seem like you only need to press k, but you have to hit k and then Enter for your selection to be registered. If this was the issue, I'll clean up the prompt text.

gadenbuie avatar Jun 28 '19 12:06 gadenbuie

Hi Garrick, that's it! The prompt makes it seem like you only need to hit one letter key. Besides, when I run the try_rsthemes() function, hit Enter until the theme I want and then hit Esc, it work as hit k and then Enter too.

kguidonimartins avatar Jun 28 '19 12:06 kguidonimartins

Great! And you're right, you can just exit the function to keep the current theme but I wanted to reduce surprises 😄 Thanks again!

gadenbuie avatar Jun 28 '19 12:06 gadenbuie

Hi Garrick,

I am living on the bleeding edge with RStudio and using Version 1.3.548 rsthemes themes do not work currently.

Just to let you know that there might be some breaking changes in v1.3

(Loving the auto-schedule feature! I've wanted this for so long already 👍 still switching manually daily since I was too lazy to create my own `rstudioapi´ bindings yet)

Screenshot 2019-10-30 at 08 11 19

pat-s avatar Oct 30 '19 07:10 pat-s

Hi @pat-s – that's odd. I just tested with 1.3.563 in a Docker container that I use for testing and it seems to be working as expected. Can you poke around a bit more in your setup or provide a few more details? Does installing/uninstalling help?

gadenbuie avatar Oct 30 '19 12:10 gadenbuie

I am on macOS. v1.3.566 still has this problem. Reinstalling does not help.

I tested a few dailies.

  • still works with v1.3.545
  • does not work with v1.3.555

Somewhere in between must be a breaking change, at least on macOS.

pat-s avatar Oct 31 '19 08:10 pat-s

@pat-s thanks for your help on this one! The directory for RStudio's config information changed to ~/.config/rstudio so install_rsthemes() now checks the RStudio version before copying the themes (or you can specify the destination directory).

gadenbuie avatar Nov 01 '19 12:11 gadenbuie

Hi Garrick,

{rsthemes} is really cool. Thanks for all the work you put into it. My go-to themes are the Solarized (both Dark and Light). I really like your changes to those. There's one small thing I miss - the comments. In the RStudio interpretation they are italicized and the code is a slightly lighter shade of grey. I don't know what your take is, but for me the contrast in the RStudio version reads a bit better.

RStudio Solarized Dark image

{rsthemes} Solarized Dark image

dragosmg avatar Dec 27 '19 10:12 dragosmg

Thanks @dragosmg, that's a great suggestion! I updated the color of code comments in the solarized rsthemes to make sure they match the colors suggested by the palette creator and I italicized the comments.

image

gadenbuie avatar Dec 27 '19 14:12 gadenbuie

@gadenbuie thanks a lot. Wow, that was quick!

dragosmg avatar Dec 27 '19 14:12 dragosmg

Thank you so much for this package. Absolutely love it. The themes look great, and the toggle and auto add-ins are real time savers.

If you want some suggestions on how to improve the dark themes (particularly the One Dark {rstheme}), it would be nice if you could include the dynamic darkening of plots and markdown feature from the Mojave Dark theme.

MikeJohnPage avatar Feb 12 '20 20:02 MikeJohnPage

@pat-s thanks for your help on this one! The directory for RStudio's config information changed to ~/.config/rstudio so install_rsthemes() now checks the RStudio version before copying the themes (or you can specify the destination directory).

Did they change it back to .R/ from .config/ again? I am using RStudio 1.3.842 on Windows and the themes were not available until I installed them a second time inside .R/. The first installation inside .config/ was ignored by RStudio and I couldn't list the themes with list_rsthemes() etc.

Awesome package! 😄

leonawicz avatar Feb 27 '20 15:02 leonawicz

On Windows its ~/AppData/Roaming/RStudio for RStudio >= 1.3 now. Seems like this is final for v1.3.

Soon v1.3 will be the default but maybe @gadenbuie can include a condition anyways? :)

pat-s avatar Mar 02 '20 11:03 pat-s

Thanks @leonawicz and @pat-s ... rather than guess the correct directory, I went back to using the rstudioapi to manage installation. I'm pretty sure I had reasons why I didn't do it this way originally (speed maybe?) but I can't remember exactly why now... I'm betting rstudioapi knows more about RStudio than I do 😉

gadenbuie avatar Mar 07 '20 20:03 gadenbuie

Hello, many thanks for this very helpful package. I am having some troubles to (re)install the package. I tried to update the package, but now get the following message

> devtools::install_github("gadenbuie/rsthemes")
Using github PAT from envvar GITHUB_PAT
Downloading GitHub repo gadenbuie/rsthemes@HEAD
√  checking for file 'C:\Users\Roland\AppData\Local\Temp\Rtmp2X5pl2\remotes22b023c5610d\gadenbuie-rsthemes-a003737/DESCRIPTION' (336ms)
-  preparing 'rsthemes': (894ms)
√  checking DESCRIPTION meta-information ... 
-  checking for LF line-endings in source and make files and shell scripts
-  checking for empty or unneeded directories
-  building 'rsthemes_0.0.11.tar.gz'
   
Installing package into ‘C:/Users/Roland/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
Error in loadNamespace(name) : there is no package called 'rsthemes'
Calls: :: ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
Execution halted
Error: Failed to install 'rsthemes' from GitHub:
  (converted from warning) installation of package ‘C:/Users/Roland/AppData/Local/Temp/Rtmp2X5pl2/file22b02177e85/rsthemes_0.0.11.tar.gz’ had non-zero exit status

I had uninstalled the package before, and when opening now a new R session I get the message Error in loadNamespace(name) : there is no package called ‘rsthemes’ Any help? Many thanks.

werkstattcodes avatar Aug 10 '20 20:08 werkstattcodes

Try removing/commenting calls to {rsthemes} in .Rprofile and then try re-installing the package.

pat-s avatar Aug 10 '20 20:08 pat-s

Try removing/commenting calls to {rsthemes} in .Rprofile and then try re-installing the package.

Great - many thanks. All good now.

werkstattcodes avatar Aug 10 '20 20:08 werkstattcodes

Hi Garrick! Following my comment on Twitter: image

I just wanted to try out the package...

edarin avatar Oct 05 '20 07:10 edarin

Looks like your Rtools install maybe corrupted. Remove all installations (especially old ones), reinstall Rtools and try again.

pat-s avatar Oct 05 '20 07:10 pat-s

Tested Rstudio preview 1.4 and worked flawlessly Thanks

verajosemanuel avatar Dec 24 '20 17:12 verajosemanuel

Thanks a lot for this cool package!

I'm on Ubuntu 20.04 and using the a11y-dark theme in RStudio vers. 1.4.1103. I'm seeing some minor inconsistencies that I thought I'd report back.

The top bar with File, Edit, etc. appears to still have the default color scheme: image

The appears to be true for the scroll bar: image

The menu that opens once you click on e.g. File also has the blueish default color (somehow it refused to have its screenshot taken 🤷🏼‍♂️ - sorry)

Let me know if there is any other type of information you need. Thanks again 🙏🏼

LDalby avatar Feb 18 '21 07:02 LDalby

I'm noticing the same issues with Monokai theme as @LDalby . I'm thinking it's an rstudio default that the menus colors only have a light versus dark color and are not editable by themes? But I hope I'm wrong.

The same thing appears in the files folder - no matter what theme I choose, the files pane has the same purple links. Again, I assume these are not customizable but I'd love to be wrong!

kelseygonzalez avatar Mar 18 '21 15:03 kelseygonzalez

I love the package and solarized light. The only problem is that it's very difficult to determine which tab is currently active.

image

It would be nice to have some font/background difference between the active file and the others.

idavydov avatar Mar 15 '22 10:03 idavydov

Thank you for this awesome package! I use it on my job, in my home computer, everywhere even in the server where I cannot use devtools I copied your rstheme to use directly!

I use on arch, manjaro, windows 10, windows 11 and windows server.

image

The only difficulty is trying to find things on code, the highlight color is too similar to be seen easily.

I'm using the night-owl theme in all machines.

[edit] I added a theme with only the selection and name changed to a new color more visible. night-owl-selection.zip image

Theluga avatar Dec 14 '23 22:12 Theluga