Unfortunately Rprofile.site or .Rprofile won't work because the code executed there is executed outside of the RStudio context. The rstudioapi::applyTheme() function allows you to programmatically change the RStudio theme, but again, it will not run from .Rprofile. More discussion can be found in this issue.