Guides 11792 Published by

This one‑page guide takes you through installing R on Fedora 36 by first ensuring you have the Development Tools group, adding optional RPM‑Fusion and EPEL repositories, and then pulling the binary from the official repos. It explains every step—from installing gcc and headers to cleaning metadata—so that compiling packages like tidyverse or ggplot2 will work without unexpected errors. Once R is installed you can quickly verify it with sessionInfo() in the REPL, and for an IDE experience the guide shows how to add RStudio from Fedora’s package set. The article also highlights common pitfalls such as missing devtools when installing packages and invites readers to leave comments if anything goes wrong.



How to Install R Lang on Fedora 36 Linux

If you’re a data nerd who’s been tinkering in the terminal and suddenly needs R for a quick statistical plot, this is your one‑page guide. We’ll walk through adding the right repos, grabbing the binary, and confirming it’s running—no guesswork or endless “it worked on Windows” stories.

Check Your Base Build Tools
sudo dnf groupinstall "Development Tools"

Why bother? R pulls in a lot of C/C++ code for packages. Without gcc and the header files, even compiling a simple tidyverse library will choke. The “Development Tools” group installs those essentials in one go.

Add RPM‑Fusion (Optional but Handy)

Some R extensions live in RPM‑Fusion’s free repo:

sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-36.noarch.rpm

If you skip this, you’ll still get base R from Fedora, but you might miss out on newer packages that prefer the RPM‑Fusion build.

Enable EPEL for Extra Packages

Fedora’s core repos are fine for most, but a few R bits live in EPEL. Grab it:

sudo dnf install epel-release

After that, refresh your metadata so dnf sees everything:

sudo dnf clean all && sudo dnf update
Install R From the Repos
sudo dnf install R

That’s it. Fedora ships a reasonably recent binary (4.x or 3.x depending on the release cycle). No need to compile from source unless you’re chasing bleeding‑edge features.

Verify with a Quick Self‑Check

Launch the REPL and ask for your session info:

R -e "sessionInfo()"

You should see something like:

R version 4.3.1 (2023-12-21) -- "Red Hot Volcano"

Platform: x86_64-redhat-linux-gnu (64-bit)
...

If you get an error about missing libR.so or similar, double‑check that the R package installed properly and that your path isn’t broken.

Optional: Install RStudio Desktop

For a full IDE experience:

sudo dnf install rstudio

This pulls in the official Fedora build of RStudio. If you prefer the snap or flatpak, those work too—just make sure you’re not double‑installing conflicting versions of R.

Common Pitfall: Forgetting devtools When Installing Packages

I’ve seen users hit a wall when they try to install packages like ggplot2 without having the devtools package, which pulls in a host of dependencies. Running:

install.packages("devtools")

inside R fixes most compile‑time hiccups.

That’s all there is to it—no more “I’ve got an error that says …” after you’re done. Happy crunching! If anything goes sideways, drop a comment and we’ll sort it out together.