Skip to content

how to change the current directory to my folder.

3 messages · luan_sheng, Dirk Eddelbuettel, Peter Dalgaard

#
I want to th current folder is the specific folder when R start.It is
very boring to modify the current directory manually. How can I do it?
#
On 6 June 2005 at 10:58, luan_sheng wrote:
| I want to th current folder is the specific folder when R start.It is
| very boring to modify the current directory manually. How can I do it?

The first answer to 

	  > RSiteSearch("change directory")

tells you about setwd() and getwd().

There *are* good help facilities available. Please use them.

Hope this helps, Dirk
#
Dirk Eddelbuettel <edd at debian.org> writes:
I think that's what the poster considers boring. On Windows, you can
also (a) modify the properties of the startup icon and/or start menu
entry (just change the "start in" field) or (b) save an R workspace
(possibly an empty one) in the relevant directory and start R by
double-clicking it.