r - rbind.fill in parallel with foreach -
r - rbind.fill in parallel with foreach -
i trying run function importtraj openair in parallel because have bunch of files read. code. however, every time seek run in parallel error error in { : task 1 failed - "object 'rbind.fill' not found". after that, have decided rewrite function (importtraj) , turns out replaced rbind.fill function rbind function , ok parallel execution. i'd know why seems cannot utilize rbind.fill foreach in parallel. also, if utilize .combine alternative in foreach rbind.fill function same error.
thanks in advance!
cores<-detectcores() cl <- makecluster(cores) registerdoparallel(cl) path<-"~/openairwd/pheno2013/500m/" # list files files<-list.files(path=path) traj <- foreach( i=1:length(files), .combine='rbind' ) %dopar% { importtraj(site = files[i], year='', local=path) }
r parallel-processing rbind
Comments
Post a Comment