How to get R up and running in Fedora Linux

It is trivial to install R in Fedora. Just type:

sudo dnf install R

After that you can run R in the terminal. If you want an environment to work in you can use RStudio. I use Emacs and ESS. Everything works nice up until the point you want to install a package — say for example car. It wont work (out of the box). You need to install an additional program. In the terminal:

sudo dnf install libcurl-devel 

libcurl is a client-side URL transfer library that you need to install packages in R.

It is also a good idea to install:

sudo dnf install NLopt

NLopt is a library for nonlinear optimization, callable from R.

Nvidia graphic card can crash you computer

I recently installed Fedora Linux on my sons gaming computer. He has had Ubuntu on it before, and before that Arch Linux. Arch was the first Linux operative system I installed for him, since I thought he would learn from using it. And he did. The reason is that Steam constantly crashed when updated, and he had to fix it. After a while he wanted to move on to Ubuntu because he didn’t want to fix things and because he could see on Steam that games are tested on Ubuntu. After using Ubuntu for maybe 6 months we moved over to Fedora. The main reason is that Fedora is the distro I generally use.

I have never had problems installing Fedora. The only thing that can be a little bit tricky is you have a Broadcom chip for wifi. But that is not either a big deal.

But this time we had some problem. To install Fedora was easy, but the problem was that the computer restarted from time to time. This was particularly annoying when the computer was updating. It can be several reasons why a computer restarts — for example a bad power supply or some kind of problem with the motherboard. However, both the power supply and the motherboard are rather new, and everything just worked under Ubuntu. Another cause can be problems with the driver. This was my guess as well so a changed the hdmi-cable going to the screen from the graphic card to the motherboard, and everything worked. After installation and updating I installed the Nvidia driver (from RPM-fusion), shut down the computer, changed the hdmi-cable back to the graphic card — and hoped for the best. And it worked. So if you have a dedicated graphic card and you are installing at new operative system, flip the hdmi-cable over to the motherboard until you have installed the proper drivers.