Parallelization of R preprocessing