[R] How to protect two jobs running on the same directory at the same time not to corrupt each other results:

Aldi Kraja aldi at wustl.edu
Thu Feb 8 21:33:11 CET 2007


Hi,

I have a large group of jobs, some of them are running on the same 
directory.  All of them in batch mode.
What are the best ways to protect from corrupting the results two or 
more jobs running on the same directory.
One, I would think can be to run each job in a separate directory, 
collect the results and after remove the directories. But I have 
thousands of jobs that will run in parallel and I have placed about 100 
of them in each directory. They all do the same process, but on 
different variables, replications etc.

Is there any other solution better than creating separate directories in 
R? I am thinking if there is any option in R to create a unique id which 
has its own unique .Rdata, although in the same directory?

SAS for example to each batch job it assigns a different ID and a 
separate temp space, and does not mix it with another job running in 
parallel.

Thanks,

Aldi

--



More information about the R-help mailing list