How to Install Tidyverse on Ubuntu 16.04 and 17.04

How to install Tidyverse on Ubuntu 18.04.3 LTS (Bionic Beaver)?

You should probably first update R (currently it is version 3.6.1-2). The documentation on how to set new repositories for R in Ubuntu is here: https://cran.r-project.org/bin/linux/ubuntu/

Installing tidyverse on Ubuntu 18.x & R 3.4.4/3.5.1

Edit

There is an easier way: use already compiled binaries. See this link (mirror) for more information

From your Linux terminal, run

$> echo "deb https://cloud.r-project.org/bin/linux/ubuntu bionic/" | sudo tee -a /etc/apt/sources.list

or for R 3.5.x

$> echo "deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/" | sudo tee -a /etc/apt/sources.list

Then add this key to your system with the command

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

After that

$> sudo apt-get update
$> sudo apt-get upgrade -y

$> sudo apt-get install -y r-base r-recommended r-base-dev

Search if the tidyverse is available

$> apt search r-cran-tidyverse
p r-cran-tidyverse - GNU R package "Easily Install and Load the

Installation

$> sudo apt-get install -y build-dep r-cran-tidyverse

Done !!!


I've recently installed the tidyverse package on my Linux Mint 19 which is based on Ubuntu 18.04 Bionic. This is what I did:

From your Linux terminal, run

$> sudo apt-get update

$> sudo apt-get install r-base r-base-dev r-recommended

$> sudo apt-get install libcurl4-openssl-dev libgit2-dev libxml2-dev libssl-dev libudunits2-dev libpoppler-cpp-dev

If you encounter The following packages have unmet dependencies error, try running the following to fix it

$> sudo apt-get install -f

Then in R/RStudio terminal

R> install.packages("tidyverse", dependencies = TRUE)


Related Topics



Leave a reply



Submit