How To Install R-foreach on Fedora 36

In this tutorial we learn how to install R-foreach in Fedora 36. R-foreach is Provides Foreach Looping Construct

Introduction

In this tutorial we learn how to install R-foreach on Fedora 36.

What is R-foreach

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.

We can use yum or dnf to install R-foreach on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install R-foreach.

Install R-foreach on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install R-foreach using dnf by running the following command:

sudo dnf -y install R-foreach

Install R-foreach on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install R-foreach using yum by running the following command:

sudo yum -y install R-foreach

How To Uninstall R-foreach on Fedora 36

To uninstall only the R-foreach package we can use the following command:

sudo dnf remove R-foreach

R-foreach Package Contents on Fedora 36

/usr/share/R/library/foreach
/usr/share/R/library/foreach/DESCRIPTION
/usr/share/R/library/foreach/INDEX
/usr/share/R/library/foreach/Meta
/usr/share/R/library/foreach/Meta/Rd.rds
/usr/share/R/library/foreach/Meta/demo.rds
/usr/share/R/library/foreach/Meta/features.rds
/usr/share/R/library/foreach/Meta/hsearch.rds
/usr/share/R/library/foreach/Meta/links.rds
/usr/share/R/library/foreach/Meta/nsInfo.rds
/usr/share/R/library/foreach/Meta/package.rds
/usr/share/R/library/foreach/Meta/vignette.rds
/usr/share/R/library/foreach/NAMESPACE
/usr/share/R/library/foreach/NEWS.md
/usr/share/R/library/foreach/R
/usr/share/R/library/foreach/R/foreach
/usr/share/R/library/foreach/R/foreach.rdb
/usr/share/R/library/foreach/R/foreach.rdx
/usr/share/R/library/foreach/demo
/usr/share/R/library/foreach/demo/sincSEQ.R
/usr/share/R/library/foreach/doc
/usr/share/R/library/foreach/doc/foreach.R
/usr/share/R/library/foreach/doc/foreach.Rmd
/usr/share/R/library/foreach/doc/foreach.html
/usr/share/R/library/foreach/doc/index.html
/usr/share/R/library/foreach/doc/nested.R
/usr/share/R/library/foreach/doc/nested.Rmd
/usr/share/R/library/foreach/doc/nested.html
/usr/share/R/library/foreach/examples
/usr/share/R/library/foreach/examples/apply.R
/usr/share/R/library/foreach/examples/bigmax.R
/usr/share/R/library/foreach/examples/bigmean.R
/usr/share/R/library/foreach/examples/bigmean2.R
/usr/share/R/library/foreach/examples/bootpar.R
/usr/share/R/library/foreach/examples/bootpar2.R
/usr/share/R/library/foreach/examples/bootseq.R
/usr/share/R/library/foreach/examples/colMeans.R
/usr/share/R/library/foreach/examples/comprehensions.R
/usr/share/R/library/foreach/examples/cross.R
/usr/share/R/library/foreach/examples/feapply.R
/usr/share/R/library/foreach/examples/for.R
/usr/share/R/library/foreach/examples/germandata.txt
/usr/share/R/library/foreach/examples/isplit.R
/usr/share/R/library/foreach/examples/matmul.R
/usr/share/R/library/foreach/examples/matmul2.R
/usr/share/R/library/foreach/examples/output.R
/usr/share/R/library/foreach/examples/pi.R
/usr/share/R/library/foreach/examples/qsort.R
/usr/share/R/library/foreach/examples/rf.R
/usr/share/R/library/foreach/examples/sinc.R
/usr/share/R/library/foreach/examples/sinc2.R
/usr/share/R/library/foreach/examples/sqlite.R
/usr/share/R/library/foreach/examples/tuneRF.R
/usr/share/R/library/foreach/help
/usr/share/R/library/foreach/help/+25+3A+25.html
/usr/share/R/library/foreach/help/+25do+25.html
/usr/share/R/library/foreach/help/+25dopar+25.html
/usr/share/R/library/foreach/help/AnIndex
/usr/share/R/library/foreach/help/_PACKAGE.html
/usr/share/R/library/foreach/help/accumulate.html
/usr/share/R/library/foreach/help/accumulate.ifilteredforeach.html
/usr/share/R/library/foreach/help/accumulate.iforeach.html
/usr/share/R/library/foreach/help/accumulate.ixforeach.html
/usr/share/R/library/foreach/help/aliases.rds
/usr/share/R/library/foreach/help/foreach-ext.html
/usr/share/R/library/foreach/help/foreach-package.html
/usr/share/R/library/foreach/help/foreach.html
/usr/share/R/library/foreach/help/foreach.rdb
/usr/share/R/library/foreach/help/foreach.rdx
/usr/share/R/library/foreach/help/foreach_package.html
/usr/share/R/library/foreach/help/getDoParName.html
/usr/share/R/library/foreach/help/getDoParRegistered.html
/usr/share/R/library/foreach/help/getDoParVersion.html
/usr/share/R/library/foreach/help/getDoParWorkers.html
/usr/share/R/library/foreach/help/getDoSeqName.html
/usr/share/R/library/foreach/help/getDoSeqRegistered.html
/usr/share/R/library/foreach/help/getDoSeqVersion.html
/usr/share/R/library/foreach/help/getDoSeqWorkers.html
/usr/share/R/library/foreach/help/getErrorIndex.html
/usr/share/R/library/foreach/help/getErrorIndex.ifilteredforeach.html
/usr/share/R/library/foreach/help/getErrorIndex.iforeach.html
/usr/share/R/library/foreach/help/getErrorIndex.ixforeach.html
/usr/share/R/library/foreach/help/getErrorValue.html
/usr/share/R/library/foreach/help/getErrorValue.ifilteredforeach.html
/usr/share/R/library/foreach/help/getErrorValue.iforeach.html
/usr/share/R/library/foreach/help/getErrorValue.ixforeach.html
/usr/share/R/library/foreach/help/getResult.html
/usr/share/R/library/foreach/help/getResult.ifilteredforeach.html
/usr/share/R/library/foreach/help/getResult.iforeach.html
/usr/share/R/library/foreach/help/getResult.ixforeach.html
/usr/share/R/library/foreach/help/getexports.html
/usr/share/R/library/foreach/help/makeAccum.html
/usr/share/R/library/foreach/help/paths.rds
/usr/share/R/library/foreach/help/registerDoSEQ.html
/usr/share/R/library/foreach/help/setDoPar.html
/usr/share/R/library/foreach/help/setDoSeq.html
/usr/share/R/library/foreach/help/times.html
/usr/share/R/library/foreach/help/when.html
/usr/share/R/library/foreach/html
/usr/share/R/library/foreach/html/00Index.html
/usr/share/R/library/foreach/html/R.css
/usr/share/R/library/foreach/html/foreach-ext.html
/usr/share/R/library/foreach/html/foreach-package.html
/usr/share/R/library/foreach/html/foreach.html
/usr/share/R/library/foreach/html/getDoParWorkers.html
/usr/share/R/library/foreach/html/getDoSeqWorkers.html
/usr/share/R/library/foreach/html/registerDoSEQ.html
/usr/share/R/library/foreach/html/setDoPar.html
/usr/share/R/library/foreach/html/setDoSeq.html

References

Summary

In this tutorial we learn how to install R-foreach on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).