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

17.21 score 54 stars 2.7k packages 43k scripts 281k downloads 50 mentions 23 exports 2 dependencies

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

TargetResultDate
Doc / VignettesOKNov 29 2024
R-4.5-winOKNov 29 2024
R-4.5-linuxOKNov 29 2024
R-4.4-winNOTENov 29 2024
R-4.4-macOKNov 29 2024
R-4.3-winNOTENov 29 2024
R-4.3-macOKNov 29 2024

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

Dependencies:codetoolsiterators

Using the foreach package

Rendered fromforeach.Rmdusingknitr::rmarkdownon Nov 29 2024.

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

Nesting foreach loops

Rendered fromnested.Rmdusingknitr::rmarkdownon Nov 29 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