Install R in Ubuntu

How can I install R in Ubuntu?
I have been trying the steps showed in the cran page, but it doesn't work.
Help please.

Can you be more specific? On what Ubuntu version are you? what have you tried and why do you say it doesn't work? do you get any error message?.

I have been traying to follow this instructions (the fisrt 3 links), but when I write on the terminal, I receive this error:

Orden «deb» no encontrada. Quizá quiso decir:

la orden «den» del paquete snap «den (1.2.0-0)»
la orden «dub» del paquete snap «dub (1.19.0)»
la orden «dub» del paquete deb «dub (1.16.0-1build1)»
la orden «xdeb» del paquete deb «xdeb (0.6.7)»
la orden «debi» del paquete deb «devscripts (2.19.6ubuntu1)»
la orden «dex» del paquete deb «dex (0.8.0-2)»
la orden «dep» del paquete deb «go-dep (0.5.4-2)»
la orden «deb3» del paquete deb «quilt (0.65-3)»
la orden «dab» del paquete deb «bsdgames (2.17-28)»
la orden «derb» del paquete deb «icu-devtools (63.2-2ubuntu0.1)»
la orden «debc» del paquete deb «devscripts (2.19.6ubuntu1)»
la orden «edb» del paquete deb «edb-debugger (1.0.0-1build2)»

Consulte «snap info » para ver más versiones.

I'm using Ubuntu 19.1

Ok, but how do I add a line in that direction? I mean, do I have to create a file with the line inside or how?
I haven't never done before, thanks.

Ok, I have done this, I recieve an error :confused:
And I have tried whit each of the three lines, but I get te same.
Some advise?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

That is not what the instructions say, those are not links nor commands to run on the terminal, you have to add one of those lines (which one to choose depends on your specific Ubuntu version) to your /etc/apt/sources.list file and then run these commands on the terminal.

sudo apt-get update
sudo apt-get install r-base
sudo apt-get install r-base-dev

R is fully supported on the LTS versions only but I think you can use the Bionic repositories on Ubuntu 19

1 Like

Follow the rest of the installation instructions, you are supposed to add a key by running this command

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9