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
Height' Must Be a Vector or a Matrix. Barplot Error
Labelling the Plots with Images on Graph in Ggplot2
Convert Map Data to Data Frame Using Fortify {Ggplot2} for Spatial Objects in R
Rstudio Shiny Not Able to Use Ggvis
Find the Nearest X,Y Coordinate Using R
Naive Bayes in Quanteda VS Caret: Wildly Different Results
How to Set Axis Ranges in Ggplot2 When Using a Log Scale
Paste Several Column Values into One Value in R
Control Number Formatting in Shiny's Implementation of Datatable
Manually Colouring Plots with 'Scale_Fill_Manual' in Ggplot2 Not Working
Stargazer Left Align Latex Table Columns
How to Convert List of List into a Tibble (Dataframe)
Combine Rows and Sum Their Values
Creating Shiny Reactive Variable That Indicates Which Widget Was Last Modified