Message-ID: <20120814145951.46c59a32@cb-t61p>
Date: 2012-08-14T12:59:51Z
From: Claudia Beleites
Subject: set working directory to current source directory
In-Reply-To: <CAGuusR_AE6Z6PVod95Ypf8wbmj+V5rTnFKqPQW+=SZkA0PjaXg@mail.gmail.com>
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