Re: [R] writing a package with doParallel and compiled C

2014-04-26 Thread Jeff Newmiller
I am going to go out on a limb and suggest that you not do this at all. Packages are good places for algorithms, and parallel processing is an infrastructure optimization that a) is not always an efficiency win, and b) can be quite sensitive to the actual infrastructure that is available (best

[R] writing a package with doParallel and compiled C

2014-04-26 Thread Adam Clark
Hi all, Any tips on how to use doParallel as part of a function in a package that I am writing? The function calls compiled C code, and (as far as I know), doParallel requires you to load C functions for each core that you use (either with the .packages argument to foreach(), or by explicitly load