Dynamic Parallelization of R Functions