It is somehow impossible for me to install new R-packages on my Linux Mint 18 system. I need to install ggplot2
and car
.
After the input
install.packages("ggplot2")
R is working for a very long time and after this, I get the output
Warning in install.packages : installation of package ‘scales’ had non-zero exit status ERROR: dependencies ‘digest’, ‘plyr’, ‘reshape2’, ‘scales’, ‘tibble’, ‘lazyeval’ are not available for package ‘ggplot2’ * removing ‘/home/phine/R/x86_64-pc-linux-gnu-library/3.2/ggplot2’ Warning in install.packages : installation of package ‘ggplot2’ had non-zero exit status
The downloaded source packages are in ‘/tmp/RtmpsK4IjC/downloaded_packages’ Warnmeldung: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, : there is no package called ‘ggplot2’
The same happens, if I am trying to install the car
package.
So far I was trying to follow the help from R-bloggers (https://www.r-bloggers.com/installing-r-packages/), but I get the same output.
Further I tried: (Error installing ggplot2)
if(!require(ggplot2)) install.packages('dplyr',dependencies = TRUE)
The output is the same as above
there is no package called ‘ggplot2’
After this I read the posts on this page (Can't install R packages on Linux Mint 17). After running in the terminal,
sudo apt-get install r-base-dev
I get the output (this is a free translation. Unfortunately my terminal is speaking german, even if I change the system language to english)
E: package »r-base-dev« has no installation candidate
Input:sudo apt-get install r-cran-rcpp
Output:E: package r-cran-rcpp not found.
I hope my question is clear and precise enough. I am beginner in using R and Linux.