title: RStudio: Running .Rprofile in source file location
body: <p>I have set up a workflow governed by a Makefile.</p>
  <p>Under <code>code/</code> I have multiple *.r scripts each typically responsible for creating one output file (typically an RData file but could also be csv exports or png images, any file in principle)</p>
  <p><code>code/.Rprofile</code> contains some helper functions to bootstrap the whole project directory system and sources some helper functions etc.</p>
  <p>The scripts in <code>code/</code> need this functionality to work properly.</p>
  <p>RStudio has the convenient menu entry to <em>set working directory to source file location</em>.</p>
  <p>But could I also make it run .Rprofile in that directory if found? Or really just start R a fresh from the directory of the source file?</p>