gadenbuie / rsthemes

🔮 Full RStudio IDE and Syntax Themes
https://www.garrickadenbuie.com/project/rsthemes/
Other
603 stars 45 forks source link

Theme directory on Windows is `~/AppData/Roaming/RStudio` for RStudio >= 1.3 #15

Closed gadenbuie closed 4 years ago

gadenbuie commented 4 years ago

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? :)

Originally posted by @pat-s in https://github.com/gadenbuie/rsthemes/issues/3#issuecomment-593358498

gadenbuie commented 4 years ago

I think there were originally some limitations with how rstudioapi::addTheme() worked that I didn't like, hence the use of {fs} to copy themes.

But the themes directory has changed a few times between RStudio 1.2 and 1.3 and rather than chase these changes I think it's better to use the internal functions of the rstudioapi package. Presumably those functions will know more than I do about where themes and configuration files are located.

And there is always the destdir option in install_rsthemes() that users can fall back on if the rstudioapi::addTheme() function doesn't work as expected.