Re: [R] Permanent change to the working directory

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Fri, 18 Apr 2008 09:59:25 +0100 (BST)

This is answered in rw-FAQ Q2.5 !

On Fri, 18 Apr 2008, Eik Vettorazzi wrote:

> On windows machines you could change the `Start in' field of the desktop
> shortcut for R to the desired working directory - you will find this in
> the properties of the shortcut. You could easily create several
> shortcuts for different projects this way.
>
> You may also consider changing your .Rprofile, see ?.Rprofile
>
> hth.
>
>
> francogrex schrieb:
>> Dear helpers,
>> I've looked in the help files (maybe not very thoroughly but I looked) and I
>> couldn't find a straightforward way to permanently set the working directory
>> (where I save and read files). Each time I startup R the working dir is
>> automatically "C:/R/bin" [using:getwd()], and I know I can change it using
>> setwd [for example setwd("C:/R/DATA"), but it's only a transient change for
>> the session, when I close and start a new R session it's in "C:/R/bin"
>> again. How can I set it definitively to "C:/R/DATA" without having to redo
>> it every session? Thanks
>>
>
> --
> Eik Vettorazzi
> Institut für Medizinische Biometrie und Epidemiologie
> Universitätsklinikum Hamburg-Eppendorf
>
> Martinistr. 52
> 20246 Hamburg
>
> T ++49/40/42803-8243
> F ++49/40/42803-7790
>
> ______________________________________________
> R-help_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

-- 
Brian D. Ripley,                  ripley_at_stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595


______________________________________________ R-help_at_r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

Received on Fri 18 Apr 2008 - 09:02:16 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 18 Apr 2008 - 09:30:32 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive