This is a repeat of a question that was asked here before but didn't get any answers. I have a student whose Windows User ID contains a space (think "Amelia McNamara") and they are getting this temp directory error when they try to launch R/RStudio. We've tried a lot of the ideas suggested on the web, including:
- Adding new global environment variables. I wasn't sure if this StackOverflow post was referring to the "user variables" section of the window or the "system variables" section (see this for a screenshot of what I'm talking about) so we tried both places.
- Making an Renviron.site file and putting it in etc
- Editing at least one other file we found in etc (now I can't remember which one, but maybe Renviron itself?)
None of these have changed the error. Any other ideas? A couple of things I have thought of:
- I didn't have the student restart their computer. Do we need to do that for these changes to take effect?
- When we look at the list of environment variables in the Windows interface, the one we created is at the very bottom under TMP and TEMP. I saw someone say that the various temp directories are tried "in order" and wasn't sure if that was in the order of the list there. It didn't seem possible to reorder the list.
- Where do we need to worry about the direction of slashes, and where don't we? For the environment variables, we used
C:\Temp
but for the Renviron.site we usedTMP=C:/Temp TEMP=C:/Temp TMPDIR=C:/Temp
as suggested. I think that's the way things usually work in R, but just want to make sure it's not something silly.
Other ideas? Having the student change their user ID may or may not help, because all those paths and directories have already been created.