Hi Sachin, > Is there a way to get cran R to set the working directory to be > wherever the source file is? Each time I work on a project on > different computers I keep having to set the working directory which > is getting quite annoying.
a while ago I asked a somewhat similar question on stackoverflow: http://stackoverflow.com/questions/8835426/get-filename-and-path-of-sourced-file You may want to have a look at the suggestions I got. Best, Claudia -- Claudia Beleites Spectroscopy/Imaging Institute of Photonic Technology Albert-Einstein-Str. 9 07745 Jena Germany email: claudia.belei...@ipht-jena.de phone: +49 3641 206-133 fax: +49 2641 206-399 ______________________________________________ R-help@r-project.org mailing list 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.