I am using R on windows and need to change the temporary directory where tmp files are stored.
I checked a few answers, here, in R-help, etc., but no one is working
Create a file called .Renviron in the directory given by Sys.getenv('R_USER') and save it with the line TMP = ''.
Sys.getenv('R_USER')
TMP = ''
write("TMP = ''", file=file.path(Sys.getenv('R_USER'), '.Renviron'))