How To Install R-mockery on Fedora 36

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

Introduction

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

What is R-mockery

The two main functionalities of this package are creating mock objects (functions) and selectively intercepting calls to a given function that originate in some other function. It can be used with any testing framework available for R. Mock objects can be injected with either this package’s own stub() function or a similar with_mock() facility present in the testthat package.

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

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

sudo dnf -y install R-mockery

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

sudo yum -y install R-mockery

How To Uninstall R-mockery on Fedora 36

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

sudo dnf remove R-mockery

R-mockery Package Contents on Fedora 36

/usr/share/R/library/mockery
/usr/share/R/library/mockery/DESCRIPTION
/usr/share/R/library/mockery/INDEX
/usr/share/R/library/mockery/LICENSE
/usr/share/R/library/mockery/Meta
/usr/share/R/library/mockery/Meta/Rd.rds
/usr/share/R/library/mockery/Meta/features.rds
/usr/share/R/library/mockery/Meta/hsearch.rds
/usr/share/R/library/mockery/Meta/links.rds
/usr/share/R/library/mockery/Meta/nsInfo.rds
/usr/share/R/library/mockery/Meta/package.rds
/usr/share/R/library/mockery/Meta/vignette.rds
/usr/share/R/library/mockery/NAMESPACE
/usr/share/R/library/mockery/NEWS.md
/usr/share/R/library/mockery/R
/usr/share/R/library/mockery/R/mockery
/usr/share/R/library/mockery/R/mockery.rdb
/usr/share/R/library/mockery/R/mockery.rdx
/usr/share/R/library/mockery/doc
/usr/share/R/library/mockery/doc/index.html
/usr/share/R/library/mockery/doc/mocks-and-testthat.R
/usr/share/R/library/mockery/doc/mocks-and-testthat.Rmd
/usr/share/R/library/mockery/doc/mocks-and-testthat.html
/usr/share/R/library/mockery/help
/usr/share/R/library/mockery/help/AnIndex
/usr/share/R/library/mockery/help/aliases.rds
/usr/share/R/library/mockery/help/call-expectations.html
/usr/share/R/library/mockery/help/expect_args.html
/usr/share/R/library/mockery/help/expect_call.html
/usr/share/R/library/mockery/help/expect_called.html
/usr/share/R/library/mockery/help/length.mock.html
/usr/share/R/library/mockery/help/mock.html
/usr/share/R/library/mockery/help/mock_args.html
/usr/share/R/library/mockery/help/mock_calls.html
/usr/share/R/library/mockery/help/mockery-package.html
/usr/share/R/library/mockery/help/mockery.html
/usr/share/R/library/mockery/help/mockery.rdb
/usr/share/R/library/mockery/help/mockery.rdx
/usr/share/R/library/mockery/help/paths.rds
/usr/share/R/library/mockery/help/stub.html
/usr/share/R/library/mockery/html
/usr/share/R/library/mockery/html/00Index.html
/usr/share/R/library/mockery/html/R.css
/usr/share/R/library/mockery/html/call-expectations.html
/usr/share/R/library/mockery/html/mock.html
/usr/share/R/library/mockery/html/mockery.html
/usr/share/R/library/mockery/html/stub.html

References

Summary

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