Skip to content
Prev 302884 / 398503 Next

Parallel runs of an external executable with snow in local

Hi Uwe,
I’ve tried changing the working directory and made a few tests and it seems it works perfectly fine. Thank you so much for your suggestion.

I’ve found a minor issue running my code.  Although I’m using: 

unlink(temporary.folder, recursive=TRUE)

, it seems that many folders are not unlinked and remain in the working directory. Any suggestion to avoid this? 

I was afraid (due to my poor knowledge of parallel code) that changing the directory would cause all instances use the same folder, so messing up files again. However, it seems that changing work directory just affects the calling instance. Please, someone correct me if I’m wrong.

All the best, 

Xavi 

-----Uwe Ligges <ligges at statistik.tu-dortmund.de> ha escrit: -----

Per a: Xavier Portell/UPC <xavier.portell at upc.edu>
De: Uwe Ligges <ligges at statistik.tu-dortmund.de>
Data: 07/08/2012 03:41PM
a/c: r-help at r-project.org
Assumpte: Re: [R] Parallel runs of an external executable with snow in local
On 06.08.2012 17:07, Xavier Portell/UPC wrote:
Errr, you mean you cannot specify an input for "filetorun.exe"?

If so, you can ask R to switch to use another working directory for each 
instance.

Best,
Uwe Ligges