title: Change tempdir() in session (update R_TempDir)
body: <p>I am looking for a way to change the <code>tempdir()</code> location after an R session has started. I think it would be required to update the C level global variable <code>R_TempDir</code>. What would be a nice way to do this from within R?</p>