[R] Changing working directory

Petr Klasterecky klaster at karlin.mff.cuni.cz
Mon Apr 23 14:27:03 CEST 2007


Hi,

you seem to have mixed 2 different things:
1) changing a working directory - see ?setwd, ?getwd
However, this will NOT load another .Rdata file.

2) loading data - see ?load and ?save, ?save.image - loading new data 
image will erase all currently stored objects.

Petr


Walter Paczkowski napsal(a):
> Good morning,
> 
> I keep copies my .RData file in different directories for different projects on Windows XP.  There is an icon on my desktop for each project so all I have to do is click on the icon to open R for a specific project, i.e. a specific .RData file.  How do I change to another .RData file from within R without first closing R?
> 
> Thanks,
> 
> Walt Paczkowski
> 
> ______________________________________________
> R-help at stat.math.ethz.ch 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.
> 

-- 
Petr Klasterecky
Dept. of Probability and Statistics
Charles University in Prague
Czech Republic



More information about the R-help mailing list