Setting R working directories on Windows - was RE: Why does R start in wrong working directory ...
My preference is to start in different working directories depending on which project I am working on. R_USER is not a project directory. One way to do that is to double-click on an RData file located where you want to start.
Saving an empty 'empty.RData' image in my project directories when I start a project is my preferred tactic. Always works independent of the physical location.
Another way is to create a new shortcut in each directory.
Did you mean 'shortcut _to_'? That is, set up a shortcut somewhere like the desktop that points to Rgui.exe but with different 'Start in:' values for each project? Or literally a shortcut (probably with blank 'Start in:') in each project directory? (Both should work)
Another way is to add a line to your script that sets the directory appropriately, though that makes sharing the scripts harder.
This is indeed my most-hated way of doing this. It is very awkward when I move to a different machine - which I do a lot when shifting between working at work, working at home and working offsite on a laptop.
Another way is to use RStudio projects.
*******************************************************************
This email and any attachments are confidential. Any use...{{dropped:8}}