@
[email protected] I think we're making it much too complicated for beginners! Sure, setwd() can cause issues in the long run, but then if the primary user of the code is you, and you set the working directory in the first few lines, I don't see much of a problem. What's much more problematic is if we don't use a script but do "quick fixes" in the console, or burying a setwd() down on line 1242 or something like that. In Rstudio you can click on the path to the working directory above the console, and then set the working directory on the panel on the right (cogwheel > set as working directory).