title: Pass .Renviron file location to R session?
body: <p>By default, R looks for a .Renviron file in the home directory (as explained e.g. here: <a href="https://stackoverflow.com/a/43785071">https://stackoverflow.com/a/43785071</a>). </p>
  
  <p>In that .Renviron file, a custom package installation directory can be specified with <code>R_LIBS_USER=/some/path</code>. </p>
  
  <p>Can I pass a custom .Renviron file to an CLI R session, i.e. something like below?</p>
  
  <p><code>R --environment=/my/custom/folder/.Renviron</code> </p>
  
  <p>or </p>
  
  <p><code>Rscript --environment=/my/custom/folder/.Renviron</code></p>
  
  <p>to overwrite <code>~/.Renviron</code> (or if there's no .Renviron in the home directory at all). </p>