© Chris Conlan 2016

Chris Conlan, Automated Trading with R, 10.1007/978-1-4842-2178-5_13

13. Appendix B: Scoping in Multicore R

Chris Conlan

(1)Bethesda, Maryland, USA

This book makes frequent use of the foreach package in R to parallelize computations. This package, developed by Steve Weston of Revolution Analytics, allows users to write operating system–independent (OS-independent) multicore code. It works by acting as a single OS-independent interface to different OS-dependent parallel back ends.

At face value, the package seems to implement this idea well. Windows users rely on doParallel for a parallel back end, and UNIX users rely on doMC for a parallel back end. All of the examples in the official package documentation run without problems. ...

Get Automated Trading with R: Quantitative Research and Platform Development now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.