title: Set the Rstudio theme info in .Rprofile file
body: <p>Is there a way to set the Rstudio Theme info in .Rprofile file?</p>
  
  <p>I see lots of references on how to change the editor theme using the Rstudio IDE.  <a href="https://support.rstudio.com/hc/en-us/articles/115011846747-Using-RStudio-Themes" rel="nofollow noreferrer">https://support.rstudio.com/hc/en-us/articles/115011846747-Using-RStudio-Themes</a>  and this SO responce: <a href="https://stackoverflow.com/questions/40369595/altering-rstudio-editor-theme">Altering RStudio Editor Theme</a></p>
  
  <p>I would really like to port my preference as part of my .Rprofile file to each new projects as I work on them or as part of a container build.</p>
  
  <p>The current theme values can be viewed using the  function <code>getThemeInfo()</code> from rstudioapi, but have no idea how to set the theme or the $editor, $global, and $dark theme parts of the theme info.</p>
  
  <pre><code>&gt; rstudioapi::getThemeInfo()
  $editor
  [1] "Merbivore"
  
  $global
  [1] "Modern"
  
  $dark
  [1] TRUE
  </code></pre>