Skip to content
Prev 303274 / 398506 Next

set working directory to current source directory

When you close R it asks whether to save the workspace. I often say
"yes" and later start R by double clicking on that workspace (named
.Rdata) -- then the wd is automatically set. Alternatively you can
have setwd("X:/some/thing") at the beginning of your source file.

On Tue, Aug 14, 2012 at 3:40 AM, Sachinthaka Abeywardana
<sachin.abeywardana at gmail.com> wrote: