[R-sig-hpc] load does not work for me with foreach and %dopar%

Benilton Carvalho beniltoncarvalho at gmail.com
Tue Jul 26 15:55:52 CEST 2011


with %dopar%, different R sessions will be used (and they're not the
one you called foreach() from).

so, load() does work, but you never asked foreach() to return whatever
you loaded:

results = foreach(i=objectsNamesVector) %dopar% get(load(paste(i,
'.RData', sep='')))
print(results)

b



More information about the R-sig-hpc mailing list