R execution error inside Parallel Loops

Thanks. Yesterday I implemented a similar solution (which I got from here). And indeed this solves the problem.

Dirty hack, but it works…