Re: [R] Permanent change to the working directory

From: Chuck Cleland <>
Date: Fri, 18 Apr 2008 04:50:58 -0400

On 4/18/2008 3:15 AM, francogrex wrote:
> 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


Chuck Cleland, Ph.D.
NDRI, Inc. (
71 West 23rd Street, 8th floor
New York, NY 10010
tel: (212) 845-4495 (Tu, Th)
tel: (732) 512-0171 (M, W, F)
fax: (917) 438-0894

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Fri 18 Apr 2008 - 09:52:20 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 - 10:30:31 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive