How To Install R-mockr on Fedora 36

In this tutorial we learn how to install R-mockr in Fedora 36. R-mockr is Mocking in R

Introduction

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

What is R-mockr

Provides a means to mock a package function, i.e., temporarily substitute it for testing. Designed as a drop-in replacement for ’testthat

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

Install R-mockr 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-mockr using dnf by running the following command:

sudo dnf -y install R-mockr

Install R-mockr 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-mockr using yum by running the following command:

sudo yum -y install R-mockr

How To Uninstall R-mockr on Fedora 36

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

sudo dnf remove R-mockr

R-mockr Package Contents on Fedora 36

/usr/share/R/library/mockr
/usr/share/R/library/mockr/DESCRIPTION
/usr/share/R/library/mockr/INDEX
/usr/share/R/library/mockr/Meta
/usr/share/R/library/mockr/Meta/Rd.rds
/usr/share/R/library/mockr/Meta/features.rds
/usr/share/R/library/mockr/Meta/hsearch.rds
/usr/share/R/library/mockr/Meta/links.rds
/usr/share/R/library/mockr/Meta/nsInfo.rds
/usr/share/R/library/mockr/Meta/package.rds
/usr/share/R/library/mockr/NAMESPACE
/usr/share/R/library/mockr/NEWS.md
/usr/share/R/library/mockr/R
/usr/share/R/library/mockr/R/mockr
/usr/share/R/library/mockr/R/mockr.rdb
/usr/share/R/library/mockr/R/mockr.rdx
/usr/share/R/library/mockr/help
/usr/share/R/library/mockr/help/AnIndex
/usr/share/R/library/mockr/help/aliases.rds
/usr/share/R/library/mockr/help/mockr-package.html
/usr/share/R/library/mockr/help/mockr.html
/usr/share/R/library/mockr/help/mockr.rdb
/usr/share/R/library/mockr/help/mockr.rdx
/usr/share/R/library/mockr/help/paths.rds
/usr/share/R/library/mockr/help/with_mock.html
/usr/share/R/library/mockr/html
/usr/share/R/library/mockr/html/00Index.html
/usr/share/R/library/mockr/html/R.css
/usr/share/R/library/mockr/html/mockr-package.html
/usr/share/R/library/mockr/html/with_mock.html

References

Summary

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