> Subject: Re: [R] set working directory to current source directory
A windows-centric work-round (assuming .Rdata files are 'associated' with the
right R binary n installation) is to save an empty environment in the relevant
project directory with the source file you would
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 stack
On Mon, Aug 13, 2012 at 8:40 PM, Sachinthaka Abeywardana
wrote:
> Hi all,
>
> 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 anno
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
Hi all,
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.
Thanks,
Sachin
[[alternative HTML version deleted]]
_
5 matches
Mail list logo