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

Linking:

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