How To Install R-formatR on Fedora 36

In this tutorial we learn how to install R-formatR in Fedora 36. R-formatR is Format R Code Automatically

Introduction

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

What is R-formatR

Provides a function tidy_source() to format R source code. Spaces and indent will be added to the code automatically, and comments will be preserved under certain conditions, so that R code will be more human-readable and tidy. There is also a Shiny app as a user interface in this package (see tidy_app()).

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

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

sudo dnf -y install R-formatR

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

sudo yum -y install R-formatR

How To Uninstall R-formatR on Fedora 36

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

sudo dnf remove R-formatR

R-formatR Package Contents on Fedora 36

/usr/share/R/library/formatR
/usr/share/R/library/formatR/DESCRIPTION
/usr/share/R/library/formatR/INDEX
/usr/share/R/library/formatR/Meta
/usr/share/R/library/formatR/Meta/Rd.rds
/usr/share/R/library/formatR/Meta/features.rds
/usr/share/R/library/formatR/Meta/hsearch.rds
/usr/share/R/library/formatR/Meta/links.rds
/usr/share/R/library/formatR/Meta/nsInfo.rds
/usr/share/R/library/formatR/Meta/package.rds
/usr/share/R/library/formatR/Meta/vignette.rds
/usr/share/R/library/formatR/NAMESPACE
/usr/share/R/library/formatR/NEWS.Rd
/usr/share/R/library/formatR/R
/usr/share/R/library/formatR/R/formatR
/usr/share/R/library/formatR/R/formatR.rdb
/usr/share/R/library/formatR/R/formatR.rdx
/usr/share/R/library/formatR/doc
/usr/share/R/library/formatR/doc/formatR.R
/usr/share/R/library/formatR/doc/formatR.Rmd
/usr/share/R/library/formatR/doc/formatR.html
/usr/share/R/library/formatR/doc/index.html
/usr/share/R/library/formatR/format
/usr/share/R/library/formatR/format/messy.R
/usr/share/R/library/formatR/help
/usr/share/R/library/formatR/help/AnIndex
/usr/share/R/library/formatR/help/aliases.rds
/usr/share/R/library/formatR/help/formatR.rdb
/usr/share/R/library/formatR/help/formatR.rdx
/usr/share/R/library/formatR/help/paths.rds
/usr/share/R/library/formatR/help/tidy_app.html
/usr/share/R/library/formatR/help/tidy_dir.html
/usr/share/R/library/formatR/help/tidy_eval.html
/usr/share/R/library/formatR/help/tidy_file.html
/usr/share/R/library/formatR/help/tidy_source.html
/usr/share/R/library/formatR/help/usage.html
/usr/share/R/library/formatR/html
/usr/share/R/library/formatR/html/00Index.html
/usr/share/R/library/formatR/html/R.css
/usr/share/R/library/formatR/html/tidy_app.html
/usr/share/R/library/formatR/html/tidy_dir.html
/usr/share/R/library/formatR/html/tidy_eval.html
/usr/share/R/library/formatR/html/tidy_source.html
/usr/share/R/library/formatR/html/usage.html
/usr/share/R/library/formatR/shiny
/usr/share/R/library/formatR/shiny/DESCRIPTION
/usr/share/R/library/formatR/shiny/Readme.md
/usr/share/R/library/formatR/shiny/server.R
/usr/share/R/library/formatR/shiny/ui.R
/usr/share/R/library/formatR/shiny/www
/usr/share/R/library/formatR/shiny/www/shiny-handler.js

References

Summary

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