Re: [R] set working directory to current source directory

2012-08-17 Thread S Ellison
> 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

Re: [R] set working directory to current source directory

2012-08-14 Thread Claudia Beleites
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

Re: [R] set working directory to current source directory

2012-08-13 Thread Gabor Grothendieck
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

Re: [R] set working directory to current source directory

2012-08-13 Thread Kenn Konstabel
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

[R] set working directory to current source directory

2012-08-13 Thread Sachinthaka Abeywardana
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]] _