[R] set working directory to current source directory

Claudia Beleites Claudia.Beleites at ipht-jena.de
Tue Aug 14 14:59:51 CEST 2012


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.beleites at ipht-jena.de
phone: +49 3641 206-133
fax:   +49 2641 206-399



More information about the R-help mailing list