How to install R on Ubuntu 16.04 Xenial?
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
3
down vote
favorite
Is there a convenient shell script that allows you to install everything at once?
16.04 r
add a comment |Â
up vote
3
down vote
favorite
Is there a convenient shell script that allows you to install everything at once?
16.04 r
This may be relevant: askubuntu.com/questions/919275/â¦
â user68186
Mar 8 at 17:20
@user68186 The other answer is a shell script that does everything for me :)
â frank
Mar 8 at 17:23
add a comment |Â
up vote
3
down vote
favorite
up vote
3
down vote
favorite
Is there a convenient shell script that allows you to install everything at once?
16.04 r
Is there a convenient shell script that allows you to install everything at once?
16.04 r
asked Mar 8 at 17:12
![](https://i.stack.imgur.com/zLzUN.png?s=32&g=1)
![](https://i.stack.imgur.com/zLzUN.png?s=32&g=1)
frank
979
979
This may be relevant: askubuntu.com/questions/919275/â¦
â user68186
Mar 8 at 17:20
@user68186 The other answer is a shell script that does everything for me :)
â frank
Mar 8 at 17:23
add a comment |Â
This may be relevant: askubuntu.com/questions/919275/â¦
â user68186
Mar 8 at 17:20
@user68186 The other answer is a shell script that does everything for me :)
â frank
Mar 8 at 17:23
This may be relevant: askubuntu.com/questions/919275/â¦
â user68186
Mar 8 at 17:20
This may be relevant: askubuntu.com/questions/919275/â¦
â user68186
Mar 8 at 17:20
@user68186 The other answer is a shell script that does everything for me :)
â frank
Mar 8 at 17:23
@user68186 The other answer is a shell script that does everything for me :)
â frank
Mar 8 at 17:23
add a comment |Â
2 Answers
2
active
oldest
votes
up vote
3
down vote
accepted
We need to add R repository, then install packages from it:
cat <<EOF | sudo tee /etc/apt/sources.list.d/r-cran.list
deb https://cloud.r-project.org/bin/linux/ubuntu xenial/
EOF
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9
sudo apt-get update
sudo apt-get install r-base r-base-devDownload RStudio from official site, for example, version 1.1.423, and install it with
gdebi
:wget https://download1.rstudio.org/rstudio-xenial-1.1.423-amd64.deb
sudo apt-get install ./rstudio-xenial-1.1.423-amd64.deb
add a comment |Â
up vote
0
down vote
Conveniently, there is, right here! The contents of this shell script:
# Install R + RStudio on Ubuntu 16.04
sudo apt-key adv âÂÂkeyserver keyserver.ubuntu.com âÂÂrecv-keys E084DAB9
# Ubuntu 12.04: precise
# Ubuntu 14.04: trusty
# Ubuntu 16.04: xenial
# Basic format of next line deb https://<my.favorite.cran.mirror>/bin/linux/ubuntu <enter your ubuntu version>/
sudo add-apt-repository 'deb https://ftp.ussg.iu.edu/CRAN/bin/linux/ubuntu xenial/'
sudo apt-get update
sudo apt-get install r-base
sudo apt-get install r-base-dev
# Download and Install RStudio
sudo apt-get install gdebi-core
wget https://download1.rstudio.org/rstudio-1.0.44-amd64.deb
sudo gdebi rstudio-1.0.44-amd64.deb
rm rstudio-1.0.44-amd64.deb
add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
3
down vote
accepted
We need to add R repository, then install packages from it:
cat <<EOF | sudo tee /etc/apt/sources.list.d/r-cran.list
deb https://cloud.r-project.org/bin/linux/ubuntu xenial/
EOF
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9
sudo apt-get update
sudo apt-get install r-base r-base-devDownload RStudio from official site, for example, version 1.1.423, and install it with
gdebi
:wget https://download1.rstudio.org/rstudio-xenial-1.1.423-amd64.deb
sudo apt-get install ./rstudio-xenial-1.1.423-amd64.deb
add a comment |Â
up vote
3
down vote
accepted
We need to add R repository, then install packages from it:
cat <<EOF | sudo tee /etc/apt/sources.list.d/r-cran.list
deb https://cloud.r-project.org/bin/linux/ubuntu xenial/
EOF
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9
sudo apt-get update
sudo apt-get install r-base r-base-devDownload RStudio from official site, for example, version 1.1.423, and install it with
gdebi
:wget https://download1.rstudio.org/rstudio-xenial-1.1.423-amd64.deb
sudo apt-get install ./rstudio-xenial-1.1.423-amd64.deb
add a comment |Â
up vote
3
down vote
accepted
up vote
3
down vote
accepted
We need to add R repository, then install packages from it:
cat <<EOF | sudo tee /etc/apt/sources.list.d/r-cran.list
deb https://cloud.r-project.org/bin/linux/ubuntu xenial/
EOF
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9
sudo apt-get update
sudo apt-get install r-base r-base-devDownload RStudio from official site, for example, version 1.1.423, and install it with
gdebi
:wget https://download1.rstudio.org/rstudio-xenial-1.1.423-amd64.deb
sudo apt-get install ./rstudio-xenial-1.1.423-amd64.deb
We need to add R repository, then install packages from it:
cat <<EOF | sudo tee /etc/apt/sources.list.d/r-cran.list
deb https://cloud.r-project.org/bin/linux/ubuntu xenial/
EOF
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9
sudo apt-get update
sudo apt-get install r-base r-base-devDownload RStudio from official site, for example, version 1.1.423, and install it with
gdebi
:wget https://download1.rstudio.org/rstudio-xenial-1.1.423-amd64.deb
sudo apt-get install ./rstudio-xenial-1.1.423-amd64.deb
edited Jul 19 at 8:48
answered Mar 8 at 17:38
N0rbert
15.4k33171
15.4k33171
add a comment |Â
add a comment |Â
up vote
0
down vote
Conveniently, there is, right here! The contents of this shell script:
# Install R + RStudio on Ubuntu 16.04
sudo apt-key adv âÂÂkeyserver keyserver.ubuntu.com âÂÂrecv-keys E084DAB9
# Ubuntu 12.04: precise
# Ubuntu 14.04: trusty
# Ubuntu 16.04: xenial
# Basic format of next line deb https://<my.favorite.cran.mirror>/bin/linux/ubuntu <enter your ubuntu version>/
sudo add-apt-repository 'deb https://ftp.ussg.iu.edu/CRAN/bin/linux/ubuntu xenial/'
sudo apt-get update
sudo apt-get install r-base
sudo apt-get install r-base-dev
# Download and Install RStudio
sudo apt-get install gdebi-core
wget https://download1.rstudio.org/rstudio-1.0.44-amd64.deb
sudo gdebi rstudio-1.0.44-amd64.deb
rm rstudio-1.0.44-amd64.deb
add a comment |Â
up vote
0
down vote
Conveniently, there is, right here! The contents of this shell script:
# Install R + RStudio on Ubuntu 16.04
sudo apt-key adv âÂÂkeyserver keyserver.ubuntu.com âÂÂrecv-keys E084DAB9
# Ubuntu 12.04: precise
# Ubuntu 14.04: trusty
# Ubuntu 16.04: xenial
# Basic format of next line deb https://<my.favorite.cran.mirror>/bin/linux/ubuntu <enter your ubuntu version>/
sudo add-apt-repository 'deb https://ftp.ussg.iu.edu/CRAN/bin/linux/ubuntu xenial/'
sudo apt-get update
sudo apt-get install r-base
sudo apt-get install r-base-dev
# Download and Install RStudio
sudo apt-get install gdebi-core
wget https://download1.rstudio.org/rstudio-1.0.44-amd64.deb
sudo gdebi rstudio-1.0.44-amd64.deb
rm rstudio-1.0.44-amd64.deb
add a comment |Â
up vote
0
down vote
up vote
0
down vote
Conveniently, there is, right here! The contents of this shell script:
# Install R + RStudio on Ubuntu 16.04
sudo apt-key adv âÂÂkeyserver keyserver.ubuntu.com âÂÂrecv-keys E084DAB9
# Ubuntu 12.04: precise
# Ubuntu 14.04: trusty
# Ubuntu 16.04: xenial
# Basic format of next line deb https://<my.favorite.cran.mirror>/bin/linux/ubuntu <enter your ubuntu version>/
sudo add-apt-repository 'deb https://ftp.ussg.iu.edu/CRAN/bin/linux/ubuntu xenial/'
sudo apt-get update
sudo apt-get install r-base
sudo apt-get install r-base-dev
# Download and Install RStudio
sudo apt-get install gdebi-core
wget https://download1.rstudio.org/rstudio-1.0.44-amd64.deb
sudo gdebi rstudio-1.0.44-amd64.deb
rm rstudio-1.0.44-amd64.deb
Conveniently, there is, right here! The contents of this shell script:
# Install R + RStudio on Ubuntu 16.04
sudo apt-key adv âÂÂkeyserver keyserver.ubuntu.com âÂÂrecv-keys E084DAB9
# Ubuntu 12.04: precise
# Ubuntu 14.04: trusty
# Ubuntu 16.04: xenial
# Basic format of next line deb https://<my.favorite.cran.mirror>/bin/linux/ubuntu <enter your ubuntu version>/
sudo add-apt-repository 'deb https://ftp.ussg.iu.edu/CRAN/bin/linux/ubuntu xenial/'
sudo apt-get update
sudo apt-get install r-base
sudo apt-get install r-base-dev
# Download and Install RStudio
sudo apt-get install gdebi-core
wget https://download1.rstudio.org/rstudio-1.0.44-amd64.deb
sudo gdebi rstudio-1.0.44-amd64.deb
rm rstudio-1.0.44-amd64.deb
edited Mar 8 at 18:07
answered Mar 8 at 17:13
![](https://i.stack.imgur.com/zLzUN.png?s=32&g=1)
![](https://i.stack.imgur.com/zLzUN.png?s=32&g=1)
frank
979
979
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1013160%2fhow-to-install-r-on-ubuntu-16-04-xenial%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
This may be relevant: askubuntu.com/questions/919275/â¦
â user68186
Mar 8 at 17:20
@user68186 The other answer is a shell script that does everything for me :)
â frank
Mar 8 at 17:23