> 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}}
______________________________________________
[email protected] mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.