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.

Version: 1.5.2
Depends: R (≥ 2.5.0)
Imports: codetools, utils, iterators
Suggests: randomForest, doMC, doParallel, testthat, knitr, rmarkdown
Published: 2022-02-02
Author: Folashade Daniel [cre], Hong Ooi [ctb], Rich Calaway [ctb], Microsoft [aut, cph], Steve Weston [aut]
Maintainer: Folashade Daniel <fdaniel at microsoft.com>
BugReports: https://github.com/RevolutionAnalytics/foreach/issues
License: Apache License (== 2.0)
URL: https://github.com/RevolutionAnalytics/foreach
NeedsCompilation: no
Materials: README NEWS
In views: HighPerformanceComputing
CRAN checks: foreach results

Documentation:

Reference manual: foreach.pdf
Vignettes: foreach
nested

Downloads:

Package source: foreach_1.5.2.tar.gz
Windows binaries: r-devel: foreach_1.5.2.zip, r-release: foreach_1.5.2.zip, r-oldrel: foreach_1.5.2.zip
macOS binaries: r-release (arm64): foreach_1.5.2.tgz, r-oldrel (arm64): foreach_1.5.2.tgz, r-release (x86_64): foreach_1.5.2.tgz, r-oldrel (x86_64): foreach_1.5.2.tgz
Old sources: foreach archive

Reverse dependencies:

Reverse depends: adabag, biganalytics, bigparallelr, bigSurvSGD, bumphunter, cellmigRation, CenBAR, cffdrs, changepointTests, cnvGSA, conformalClassification, CoTiMA, crso, cubfits, datanugget, Diderot, DNMF, doFuture, doMC, doMPI, doParallel, doRedis, doRNG, doSNOW, DTRlearn2, ellipticalsymmetry, ENmix, epihet, EPX, evian, flowMerge, GA, gam, gamlss.foreach, GAparsimony, GaussianHMM1d, GenHMM1d, genlogis, geoTS, GiNA, gmDatabase, gpmap, HMMcopula, idmTPreg, IDSpatialStats, iIneq, integIRTy, kcpRS, LEANR, LipidMS, localgauss, mbclusterwise, MEGENA, MineICA, MixedIndTests, MixRF, MonoInc, MoonlightR, mSimCC, mutSignatures, PAGWAS, penDvine, perspectev, PortfolioAnalytics, pwrEWAS, ramr, ramsvm, randomGLM, RegParallel, REPTILE, RGBM, Rlda, rlfsm, Rlof, RootsExtremaInflections, RPPASPACE, s4vd, SCAN.UPC, scRNAtools, SEA, selfingTree, SeqKat, sglOptim, simMP, SIMMS, SISIR, skewMLRM, sms, sRDA, sta, survSNP, TPEA, turboEM, vtpnet, weightQuant, yaConsensus
Reverse imports: AATtools, abcrf, abn, adamethods, adapt4pv, adaptDiag, ADAPTS, adductomicsR, ADMM, ADMMsigma, AEenrich, aliases2entrez, AMARETTO, ANCOMBC, AneuFinder, ApacheLogProcessor, APIS, Arothron, asremlPlus, assignPOP, astrochron, atakrig, autohrf, autoMrP, autoRasch, autostsm, AZIAD, BaalChIP, bagged.outliertrees, BANDITS, basket, bastah, BayesBinMix, bayNorm, bdc, BDWreg, benchmarkme, bestNormalize, betapart, bhmbasket, biclustermd, BIEN, bigsnpr, bigstatsr, bingat, biomod2, biosurvey, bisque, biwavelet, blackbox, BMTME, bnspatial, bonsai, bootcluster, bootPLS, BootstrapQTL, borealis, BPRMeth, brainGraph, breakpoint, breakpointR, BSGW, BSL, bst, BuyseTest, BVSNLP, calibrar, CalibratR, cape, caret, CARRoT, catlearn, cats, CBDA, cbl, ccdf, ccmap, cdcatR, cdmTools, celda, cellbaseR, CENFA, censusxy, CFC, cgaim, chicane, chickn, chromstaR, CHRONOS, CIDER, CIMTx, circularEV, clespr, clinDR, clogitLasso, clordr, ClusROC, ClustAssess, clustcurv, clustDRM, Clustering, clusterPower, ClustVarLV, clustvarsel, CNVPanelizer, CNVScope, cogena, CohortPlat, cola, colocalized, comapr, COMPASS, ComplexHeatmap, Compositional, conclus, condSURV, CONFESS, CoNI, conleyreg, ConR, conStruct, contact, contsurvplot, CopernicusDEM, corr2D, Counterfactual, covdepGE, CovTools, CoxICPen, cpfa, cpi, creditmodel, CRImage, crlmm, CRTConjoint, csa, cutpointr, CVglasso, cvwrapr, cytominer, DAISIE, DAPAR, dartR, dataprep, DatastreamDSWS2R, dcanr, DCD, dCovTS, DCSmooth, deconvR, DeepBlueR, deepgp, DegNorm, deltaccd, DepecheR, detectR, detrendr, DifferentialRegulation, diffloop, DiffNet, Dire, Directional, disaggregation, dissever, distantia, distinct, DistributionFitR, dMod, DMtest, dQTG.seq, drimmR, DTDA, DTDA.cif, dtwclust, dynamAedes, dynetNLAResistance, E4tools, earlygating, ecoCopula, econet, ecospat, EFDR, EGRET, ei, eicm, EmiStatR, eNchange, ENMeval, enpls, EnsembleBase, envi, EpiModel, EpiSemble, ESTER, EstimDiagnostics, EventPointer, ewoc, ExpImage, exuber, ezCutoffs, fabisearch, fabMix, FairMclus, fastcmprsk, fastLink, fastnet, FAVAR, fcScan, fda.usc, fdaMocca, fdANOVA, fdasrvf, fDMA, FedData, FGLMtrunc, fHMM, fiberLD, FilterFFPE, finnts, fitPoly, flintyR, FMM, forecastHybrid, ForestTools, FourWayHMM, FSelectorRcpp, FunChIP, FuncNN, funData, funGp, FuzzyClass, fuzzyforest, fxTWAPLS, GALLO, gambin, gamCopula, gamreg, gamsel, gapclosing, gapfill, gbts, gdm, gdpc, GENLIB, genphen, GEOfastq, GeoFIS, gep2pep, gespeR, gestate, gfiExtremes, GGIR, GGMnonreg, GLIDE, glmm, glmnet, glmtlp, glmtrans, gmGeostats, GmicR, GMMAT, gofCopula, GOpro, GPM, gratis, groupedSurv, growthcleanr, gscaLCA, GSgalgoR, gsrs, gsynth, GUniFrac, GWEX, GWLelast, GWpcor, GWPR.light, GWRM, hdbinseg, HDCI, hdnom, HDtest, HEMDAG, hettx, HextractoR, hiAnnotator, HIMA, hindex, hlt, HMP, HMPTrees, hscovar, hwep, hybridEnsemble, hybridModels, hypervolume, icardaFIGSr, icenReg, IceSat2R, IDmining, IDSL.IPA, IDSL.UFA, IDSL.UFAx, IETD, IFAA, ihclust, ILoReg, imabc, imageseg, IMAS, inctools, infercnv, Information, Infusion, ino, intamap, intccr, InteractionPoweR, interflex, InterpretMSSpectrum, intmed, iprior, isocat, isoWater, IVAS, iZID, jackstrap, JMbayes, joineRML, JOUSBoost, jSDM, kdevine, kernelshap, kernhaz, kfa, kissDE, kko, Kmedians, knnp, KScorrect, LACE, landsepi, latentcor, latrend, lboxcox, LCAvarsel, lcc, ldamatch, ldsep, ldsr, LeArEst, LEGIT, lfl, lfmm, liGP, limorhyde2, lnmCluster, logiBin, LOMAR, lpirfs, lsbclust, LWFBrook90R, M3C, mable, MachineShop, MAGEE, MAGNAMWAR, MAI, MarketMatching, Markovchart, marqLevAlg, MatrixMixtures, mazeinda, mbest, mclustAddons, MCPtests, MDBED, Mediana, Melissa, MERO, merTools, messina, metagenomeSeq, metaplus, MethylMix, metsyn, MFPCA, MFSIS, mgwrsar, mi4p, miceRanger, MicrobiomeStat, MicrobiotaProcess, midasml, mimi, MiMIR, mina, minimaxdesign, MinimumDistance, miRspongeR, misclassGLM, missForest, missMDA, mistral, ML.MSBD, MLSeq, mmb, modeltime, modeltime.ensemble, molic, momentuHMM, MoMPCA, monoClust, moreparty, Morpho, mpath, MPI, mplot, MRFA, mrMLM, mrMLM.GUI, MSA2dist, msaenet, MSCquartets, MSnID, MSPRT, msPurity, mSTEM, mstherm, multiApply, multinomialLogitMix, multiOmicsViz, MultipleBubbles, MultIS, MXM, myTAI, mzID, NADIA, NAP, NCA, netcom, netDx, netprioR, NetRep, NetSAM, NetworkDistance, NetworkToolbox, netZooR, nimbleCarbon, nlstac, NMF, noisyr, NonParRolCor, npcs, npregfast, nprotreg, NRejections, OBL, odpc, oem, oligoClasses, OmicKriging, opdisDownsampling, openPrimeR, opGMMassessment, optimalFlow, optiSel, ORdensity, ORION, ormBigData, otrimle, packMBPLSDA, PADOG, paleoTS, parallelML, ParBayesianOptimization, ParetoPosStable, parglms, parseRPDR, PAsso, PAST, pathfindR, pbo, pcoxtime, pdp, peakPantheR, pec, peco, pencal, pencopulaCond, personalized, personalized2part, phenex, PhenoGeneRanker, phenopix, phers, PhylogeneticEM, phyloseq, PINSPlus, pksensi, Platypus, PLMIX, plnr, pmparser, PNAR, polymapR, polypharmacy, polyqtlR, polywog, poolfstat, potential, POUMM, powerTCR, ppcseq, PQLseq, preciseTAD, predhy, primerTree, ProcMod, productivity, ProFound, prospectr, psborrow, psgp, psymonitor, ptairMS, PTE, purgeR, QTL.gCIMapping, QTL.gCIMapping.GUI, QUALYPSO, qualypsoss, quantro, quickNmix, R2MLwiN, RABR, RAEN, RaJIVE, randomLCA, randomUniformForest, RaSEn, rassta, rasterdiv, rayshader, rBayesianOptimization, Rbec, rcarbon, Rcpi, Rcrawler, ReactomeContentService4R, ReactomeGraph4R, redist, redistmetrics, refreg, regRSM, ReIns, relgam, rem, remiod, REMP, rENA, representr, resemble, rgenius, RGMM, RHybridFinder, riAFTBART, RiboDiPA, rifi, RISCA, riskRegression, riverconn, RJcluster, RKEEL, rliger, RLumCarlo, RMediation, RMixtCompIO, RMTL, Rnmr1D, RobGARCHBoot, robmixglm, robust2sls, robustBLME, robustrao, Robyn, RolDE, RprobitB, rrepast, RRphylo, RSC, rSHAPE, rsppfp, RStoolbox, rTLS, runexp, rusda, RZooRoH, SAMGEP, santaR, sars, SAVER, SC3, scBio, scCB2, scDHA, SCOPE, scoper, SCOR, scorecard, SCORNET, scpi, scRecover, secsse, seeker, segmentr, segMGarch, semsfa, semverutils, sen2r, sensitivity, SenTinMixt, sentometrics, seqest, seqimpute, SGP, shazam, shinyepico, SIDES, SimDesign, SimFFPE, simphony, simPop, SimSurvey, SingleCellSignalR, sivs, skpr, skyscapeR, SLEMI, SLOPE, smacof, smam, smartsnp, smog, SNPannotator, soundgen, sparr, sparrpowR, SparseMDC, spatialRF, spatPomp, speaq, spectr, sperich, sphunif, splitSelect, spmoran, spOccupancy, SPONGE, SPUTNIK, ss3sim, ssdtools, SSLR, Sstack, stablespec, stacks, StAMPP, staRdom, starvars, STATegRa, statgenMPP, statGraph, stfit, stR, sureLDA, survidm, TAG, taxize, telefit, tempoR, TestDesign, text2map, TGS, tigger, TitanCNA, TPP, TPP2D, track2KBA, trackeR, trackeRapp, TraMineRextras, transcriptogramer, transfR, TREXr, TRexSelector, TriadSim, TRONCO, truh, tsDyn, tsensembler, tsmp, TSP, tune, ubiquity, ukbtools, Uniquorn, unsystation, updog, utr.annotation, VanillaICE, varclust, vardpoor, variancePartition, varitas, varTestnlme, vectorwavelet, vennLasso, VIC5, viscomplexr, vmeasur, VSURF, VUROCS, wavClusteR, WebGestaltR, WEE, WGCNA, wkNNMI, worldmet, WRTDStidal, xcore, xray, xrnet, YaleToolkit, ZIPFA
Reverse suggests: AdaptGauss, ade4, admix, antaresRead, arrangements, azuremlsdk, batchtools, bayesboot, BayesFactor, binomialRF, BiocParallel, blockmodeling, BloodCancerMultiOmics2017, CircSpaceTime, clustermq, combiter, CPAT, data.tree, datafsm, dcGOR, DEoptim, DiceKriging, dispositionEffect, Distance, dnet, dplR, drtmle, ecpc, evolqg, eyetrackingR, fdrci, FinancialInstrument, FixedPoint, fxregime, GENIE3, ggroups, GMCM, greybox, hsdar, Interatrix, intkrige, iterators, iterpc, itertools, JWileymisc, kergp, kselection, lavaSearch2, legion, limorhyde, lmeresampler, mikropml, MKclass, MKmisc, MoBPS, MOFA2, msm, neuroim, NPflow, paxtoolsr, Pi, piRF, plyr, pre, progressr, projpred, protr, ptycho, R.SamBada, RAINBOWR, RBesT, rcellminer, RcisTarget, RCTS, rDNAse, rioja, RnBeads, robustbase, safe, sgsR, simsalapar, smooth, spaMM, sparklyr, SpatialPosition, steps, StepwiseTest, strucchange, strucchangeRcpp, SuRF.vs, swag, tableschema.r, TcGSA, treedater
Reverse enhances: AUCell, CellNOptR, CNORode

Linking:

Please use the canonical form https://CRAN.R-project.org/package=foreach to link to this page.