Package: foreach 1.5.2

Folashade Daniel

foreach: Provides Foreach Looping Construct

Support for the foreach looping construct. Foreach is an idiom that allows for iterating over elements in a collection, without the use of an explicit loop counter. This package in particular is intended to be used for its return value, rather than for its side effects. In that sense, it is similar to the standard lapply function, but doesn't require the evaluation of a function. Using foreach without side effects also facilitates executing the loop in parallel.

Authors:Folashade Daniel [cre], Hong Ooi [ctb], Rich Calaway [ctb], Microsoft [aut, cph], Steve Weston [aut]

foreach_1.5.2.tar.gz
foreach_1.5.2.zip(r-4.5)foreach_1.5.2.zip(r-4.4)foreach_1.5.2.zip(r-4.3)
foreach_1.5.2.tgz(r-4.4-any)foreach_1.5.2.tgz(r-4.3-any)
foreach_1.5.2.tar.gz(r-4.5-noble)foreach_1.5.2.tar.gz(r-4.4-noble)
foreach_1.5.2.tgz(r-4.4-emscripten)foreach_1.5.2.tgz(r-4.3-emscripten)
foreach.pdf |foreach.html
foreach/json (API)
NEWS

# Install 'foreach' in R:
install.packages('foreach', repos = c('https://revolutionanalytics.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/revolutionanalytics/foreach/issues

On CRAN:

foreachparallel-computing

23 exports 51 stars 15.36 score 2 dependencies 2636 dependents 50 mentions 44.9k scripts 188.6k downloads

Last updated 3 years agofrom:59176c0c37. Checks:OK: 4 NOTE: 3. Indexed: yes.

TargetResultDate
Doc / VignettesOKAug 31 2024
R-4.5-winNOTEAug 31 2024
R-4.5-linuxOKAug 31 2024
R-4.4-winNOTEAug 31 2024
R-4.4-macOKAug 31 2024
R-4.3-winNOTEAug 31 2024
R-4.3-macOKAug 31 2024

Exports:%:%%do%%dopar%accumulateforeachgetDoParNamegetDoParRegisteredgetDoParVersiongetDoParWorkersgetDoSeqNamegetDoSeqRegisteredgetDoSeqVersiongetDoSeqWorkersgetErrorIndexgetErrorValuegetexportsgetResultmakeAccumregisterDoSEQsetDoParsetDoSeqtimeswhen

Dependencies:codetoolsiterators

Using the foreach package

Rendered fromforeach.Rmdusingknitr::rmarkdownon Aug 31 2024.

Last update: 2020-02-19
Started: 2020-02-19

Nesting foreach loops

Rendered fromnested.Rmdusingknitr::rmarkdownon Aug 31 2024.

Last update: 2020-02-19
Started: 2020-02-19

Readme and manuals

Help Manual

Help pageTopics
foreach%:% %do% %dopar% foreach times when
foreach extension functionsaccumulate accumulate.ifilteredforeach accumulate.iforeach accumulate.ixforeach foreach-ext getErrorIndex getErrorIndex.ifilteredforeach getErrorIndex.iforeach getErrorIndex.ixforeach getErrorValue getErrorValue.ifilteredforeach getErrorValue.iforeach getErrorValue.ixforeach getexports getResult getResult.ifilteredforeach getResult.iforeach getResult.ixforeach makeAccum
Functions Providing Information on the doPar BackendgetDoParName getDoParRegistered getDoParVersion getDoParWorkers
Functions Providing Information on the doSeq BackendgetDoSeqName getDoSeqRegistered getDoSeqVersion getDoSeqWorkers
registerDoSEQregisterDoSEQ
setDoParsetDoPar
setDoSeqsetDoSeq