> In the real world, there are also strong programming integrity reasons to > hard code paths directly into our scripts. This leaves no doubt about what > dataset was being analyzed, etc.
The whole point of using a working directory is so that you _don't_ have to do that. Any hard coded path makes reproduction on another computer a real pain - you should always rely on the analyst setting the working directory from outside of the script, otherwise you lose most of the advantages of a working directory. Hadley -- Assistant Professor / Dobelman Family Junior Chair Department of Statistics / Rice University http://had.co.nz/ _______________________________________________ [email protected] mailing list https://stat.ethz.ch/mailman/listinfo/r-sig-teaching
