To illustrate what I’m talking about, this is what I see on my taskbar when I have my RStudio projects open. The full title of the window says “C:/Users/John/Dropbox/nba_fantasy - RStudio”. Now, correct me if I’m much mistaken but didn’t it use to give the project name rather than the folder location? Have I unticked something somewhere to change it?
Turns out I was remembering something right. Below are two different projects open. The first one is is showing the full directory, the second is located in C:/Users/John/Documents and displaying the project name, more or less, like I’d want to. Apparently Documents is the home folder for something.
RStudio shows paths relative to what R considers the ‘home’ directory. On Windows, this can be specified by either the HOME or the R_USER environment variables. When these variables are unset (which they typically are), R asks the operating system what the ‘personal’ directory for a user is:
Which (from the Windows documentation) suggests that this is the Documents folder within the user’s %USERPROFILE% directory: