https://github.com/bwlewis/writing_foreach_adapters
Tutorials, code and notes about writing R foreach adapters
https://github.com/bwlewis/writing_foreach_adapters
Last synced: 9 days ago
JSON representation
Tutorials, code and notes about writing R foreach adapters
- Host: GitHub
- URL: https://github.com/bwlewis/writing_foreach_adapters
- Owner: bwlewis
- Created: 2020-01-28T21:41:05.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-01-30T16:22:08.000Z (about 5 years ago)
- Last Synced: 2024-11-13T16:41:12.043Z (5 months ago)
- Language: HTML
- Size: 519 KB
- Stars: 9
- Watchers: 5
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- jimsghstars - bwlewis/writing_foreach_adapters - Tutorials, code and notes about writing R foreach adapters (HTML)
README
# Writing adapters for R's foreach package
This repository includes guides, code examples, and notes on writing
adapters for R's foreach package: https://cran.r-project.org/package=foreach
It's a work in progress. I've got a draft of a basic introductory section
and plan to add other, more detailed, sections over time.The foreach package defines an interface between R programs and back-end
systems that can, for example, evaluate code in parallel.The adapters in these notes are very simple and basic. They are designed
to illustrate the foreach API by example and to provide a simple guide
to writing new adapters.You can view raw R Markdown files in the repository, and also see example
HTML output of them at these links:- Introduction https://bwlewis.github.io/writing_foreach_adapters/introduction.html
- Code-time foreach parameters and their use
- Reproducible parallel RNG
- Foreach loop composition for efficient nested parallel routines
- Set comprehensions
- Some issues with foreach and comparison with the future package