[R] Permanent change to the working directory

francogrex francogrex at mail.com
Fri Apr 18 09:15:49 CEST 2008


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
-- 
View this message in context: http://www.nabble.com/Permanent-change-to-the-working-directory-tp16761149p16761149.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list