Skip to content

Instantly share code, notes, and snippets.

@ElToro1966
Forked from pachadotdev/r_ubuntu_17_10.sh
Last active October 1, 2023 18:29
Show Gist options
  • Star 48 You must be signed in to star a gist
  • Fork 16 You must be signed in to fork a gist
  • Save ElToro1966/999f1c8ca51a75648dd587a3170e4335 to your computer and use it in GitHub Desktop.
Save ElToro1966/999f1c8ca51a75648dd587a3170e4335 to your computer and use it in GitHub Desktop.
Install R and RStudio on Ubuntu 18.04 with essential libraries for data science. Based on pachamaltese/r_ubuntu_17_10.sh (for Ubuntu 17.10). Note: You need to make sure the default library location - /usr/local/lib/R/site-packages - is writable .
# Install R
sudo apt update
sudo apt install gdebi libxml2-dev libssl-dev libcurl4-openssl-dev libopenblas-dev r-base r-base-dev
# Install RStudio
cd ~/Downloads
wget https://download1.rstudio.org/desktop/bionic/amd64/rstudio-1.2.5001-amd64.deb
sudo gdebi rstudio-1.2.5001-amd64.deb
printf '\nexport QT_STYLE_OVERRIDE=gtk\n' | sudo tee -a ~/.profile
# Install common packages
R --vanilla << EOF
install.packages(c("tidyverse","data.table","dtplyr","devtools","roxygen2","bit64","readr"), repos = "https://cran.rstudio.com/")
q()
EOF
# Install TDD packages
R --vanilla << EOF
install.packages("testthis")
q()
EOF
# Export to HTML/Excel
R --vanilla << EOF
install.packages(c("htmlTable","openxlsx"), repos = "https://cran.rstudio.com/")
q()
EOF
# Blog tools
R --vanilla << EOF
install.packages(c("knitr","rmarkdown"), repos='http://cran.us.r-project.org')
q()
EOF
sudo apt install python-pip
sudo apt install python3-pip
sudo -H pip install markdown rpy2==2.7.1 pelican==3.7.1
sudo -H pip3 install markdown rpy2==2.9.3 pelican==3.7.1
# PDF extraction tools
sudo apt install libpoppler-cpp-dev default-jre default-jdk r-cran-rjava
sudo R CMD javareconf
R --vanilla << EOF
library(devtools)
install.packages("pdftools", repos = "https://cran.rstudio.com/")
install_github("ropensci/tabulizer")
q()
EOF
# TTF/OTF fonts usage
sudo apt install libfreetype6-dev
R --vanilla << EOF
install.packages("showtext", repos = "https://cran.rstudio.com/")
q()
EOF
# Cairo for graphic devices
sudo apt install libgtk2.0-dev libxt-dev libcairo2-dev
R --vanilla << EOF
install.packages("Cairo", repos = "https://cran.rstudio.com/")
q()
EOF
# Texlive for Latex/knitr
sudo apt -y install texlive
sudo apt -y install texlive-latex-recommended texlive-pictures texlive-latex-extra
@ElToro1966
Copy link
Author

The intention is to have a working R Studio installation with the typical packages used in data science on Ubuntu 18.04. If you think any packages are missing, or something isn't working in the script, please let me know. The script and the resulting RStudio-installation has been tested on Ubuntu Bungie 18.04 4.15.0-20-generic. Everything seems to work perfectly

@driflore94
Copy link

driflore94 commented May 12, 2018

Thanks a lot man!!!, this was very useful. 👍

@tayyabsayyad
Copy link

Thanks a lot. Made my work so easy.

@ElToro1966
Copy link
Author

ElToro1966 commented Jun 8, 2018

Glad you like it :) Added readr and the TDD package testthis to the mix.

@Daxide
Copy link

Daxide commented Jun 8, 2018

I installed R and R studio but I get the following error message: Unable to find an installation of R on the system (which R didn't return valid output); Unable to locate R binary by scanning standard locations.
How do I instruct R studio how to find R binary?

@tepoe
Copy link

tepoe commented Aug 22, 2018

Thanks a lot! Works perfectly with Linux Mint 19, unlike other instructions on the web in my experience.

@sapuizait
Copy link

Thank you ElToro - lots of nice features that I didnt know about!

@bvl2016
Copy link

bvl2016 commented Sep 8, 2018

Thank you very much!

@parveenmudgil
Copy link

Thanks a lot

@sapuizait
Copy link

This is fantastic! Thank you so much!

@nayan2000
Copy link

Thanks a lot! Works perfectly fine.

@remitoudic
Copy link

👍

@nicolasaaron
Copy link

Thank you very much !! this is really helpful

@ElToro1966
Copy link
Author

I installed R and R studio but I get the following error message: Unable to find an installation of R on the system (which R didn't return valid output); Unable to locate R binary by scanning standard locations.
How do I instruct R studio how to find R binary?

That's odd. Never had that problem. Are you sure R is installed correctly? If so, is it installed in the default location? See also https://support.rstudio.com/hc/en-us/community/posts/223945507-can-t-start-rstudio-how-to-specify-non-standard-path-to-R-

@albsch
Copy link

albsch commented Aug 6, 2019

Glad you like it :) Added readr and the TDD package testthis to the mix.

Please fix the script, line 18 is executed outside the R environment. It just ends with a syntax error currently. I'm actually wondering why people report it's working for them.

Also, for Ubuntu 18.04 users, make sure the default library location is writable (/usr/local/lib/R/site-packages). I had to add myself to the staff group.

@ElToro1966
Copy link
Author

Please fix the script, line 18 is executed outside the R environment. It just ends with a syntax error currently. I'm actually wondering why people report it's working for them.

Also, for Ubuntu 18.04 users, make sure the default library location is writable (/usr/local/lib/R/site-packages). I had to add myself to the staff group.

Code fixed. Comment on writeable library location added. Thanks.

@shevkoplyas
Copy link

Thank you, Eric!
[Q] when it's time to "install.packages" I'm getting error: 'lib = "/usr/local/lib/R/site-library"' is not writable, how to solve?
[A] sudo chmod a+rwx /usr/local/lib/R/site-library

@shevkoplyas
Copy link

also, this: install.packages("testthis")
gives an error: "trying to use CRAN without setting a mirror"
but if I add 2nd argument "repos" like below, then it works:
install.packages("testthis", repos = "https://cran.rstudio.com/")

@shevkoplyas
Copy link

also the latest version of rstudio package is now moved from "1.2.5001" up to "1.2.5019" and will be different in future, so may be add a comment, that latest version number can be peeked up and adjusted by reading official download page: https://rstudio.com/products/rstudio/download/

@webenk
Copy link

webenk commented Dec 18, 2019

Nope! Now I'm sad.
I've installed R Studio about fifty times from R Studio's websit on my Ubuntu 18.04 box here and it crashes. The app will appear (maybe) and then instantly - it crashes. I've checked file permissions, combed through R Studio Community Forums - nothing seems to work.
I cleaned out everything on my machine related to R Studio so as to not "mix it up". I thought - perhaps this instruction sheet would solve it.
Nope! It still crashes.
I have to use Pycharm, which I totally hate - but I have no choice.
As I said: Now I'm sad.
MWH

@fcsest
Copy link

fcsest commented Jan 29, 2020

What this command line does (or should do)?
printf '\nexport QT_STYLE_OVERRIDE=gtk\n' | sudo tee -a ~/.profile

@shevkoplyas
Copy link

shevkoplyas commented Jan 29, 2020 via email

@dorita-bio
Copy link

Thanks a lot, I managed to install Rstudio, however, it keeps crushing for me.
As soon as I load a file and try to generate plots, rstudio closes before any prior notice. Sometimes it also freezes.
Do you have an idea of what is happening please?

@shevkoplyas
Copy link

shevkoplyas commented Feb 14, 2020 via email

@beuchi123
Copy link

Thanks a lot for this. it was super useful.

@hapstraid
Copy link

It turned out to install only with the replacement of line 19 by:
install.packages("testthis", repos = "https://cran.rstudio.com/")

@naly-rak
Copy link

Hi everyone! I have install R with the code above but when I tried to install the pacages Rcmdr, it doesn't work!

install.packages("Rcmdr")
Installing package into ‘/home/alain/R/x86_64-pc-linux-gnu-library/3.6’
(as ‘lib’ is unspecified)
also installing the dependencies ‘pillar’, ‘tidyr’, ‘ggplot2’, ‘viridis’, ‘forcats’, ‘hms’, ‘readr’, ‘tibble’, ‘tidyselect’, ‘vctrs’, ‘cellranger’, ‘progress’, ‘broom’, ‘dplyr’, ‘Hmisc’, ‘haven’, ‘readxl’, ‘pbkrtest’, ‘rio’, ‘RcppEigen’, ‘RcmdrMisc’, ‘car’, ‘effects’, ‘lme4’

trying URL 'https://www.stats.bris.ac.uk/R/src/contrib/pillar_1.6.1.tar.gz'
Content type 'application/x-gzip' length 1111747 bytes (1.1 MB)

downloaded 1.1 MB

trying URL 'https://www.stats.bris.ac.uk/R/src/contrib/tidyr_1.1.3.tar.gz'
Content type 'application/x-gzip' length 707909 bytes (691 KB)

downloaded 691 KB

trying URL 'https://www.stats.bris.ac.uk/R/src/contrib/ggplot2_3.3.5.tar.gz'
Content type 'application/x-gzip' length 3063309 bytes (2.9 MB)

downloaded 2.9 MB

trying URL 'https://www.stats.bris.ac.uk/R/src/contrib/viridis_0.6.1.tar.gz'
Content type 'application/x-gzip' length 3054905 bytes (2.9 MB)

downloaded 2.9 MB

trying URL 'https://www.stats.bris.ac.uk/R/src/contrib/forcats_0.5.1.tar.gz'
Content type 'application/x-gzip' length 258301 bytes (252 KB)

downloaded 252 KB

trying URL 'https://www.stats.bris.ac.uk/R/src/contrib/hms_1.1.0.tar.gz'
Content type 'application/x-gzip' length 43142 bytes (42 KB)

downloaded 42 KB

trying URL 'https://www.stats.bris.ac.uk/R/src/contrib/readr_1.4.0.tar.gz'
Content type 'application/x-gzip' length 488946 bytes (477 KB)

downloaded 477 KB

trying URL 'https://www.stats.bris.ac.uk/R/src/contrib/tibble_3.1.2.tar.gz'
Content type 'application/x-gzip' length 686145 bytes (670 KB)

downloaded 670 KB

trying URL 'https://www.stats.bris.ac.uk/R/src/contrib/tidyselect_1.1.1.tar.gz'
Content type 'application/x-gzip' length 92088 bytes (89 KB)

downloaded 89 KB

trying URL 'https://www.stats.bris.ac.uk/R/src/contrib/vctrs_0.3.8.tar.gz'
Content type 'application/x-gzip' length 782608 bytes (764 KB)

downloaded 764 KB

trying URL 'https://www.stats.bris.ac.uk/R/src/contrib/cellranger_1.1.0.tar.gz'
Content type 'application/x-gzip' length 63857 bytes (62 KB)

downloaded 62 KB

trying URL 'https://www.stats.bris.ac.uk/R/src/contrib/progress_1.2.2.tar.gz'
Content type 'application/x-gzip' length 29506 bytes (28 KB)

downloaded 28 KB

trying URL 'https://www.stats.bris.ac.uk/R/src/contrib/broom_0.7.8.tar.gz'
Content type 'application/x-gzip' length 632611 bytes (617 KB)

downloaded 617 KB

trying URL 'https://www.stats.bris.ac.uk/R/src/contrib/dplyr_1.0.7.tar.gz'
Content type 'application/x-gzip' length 852103 bytes (832 KB)

downloaded 832 KB

trying URL 'https://www.stats.bris.ac.uk/R/src/contrib/Hmisc_4.5-0.tar.gz'
Content type 'application/x-gzip' length 775444 bytes (757 KB)

downloaded 757 KB

trying URL 'https://www.stats.bris.ac.uk/R/src/contrib/haven_2.4.1.tar.gz'
Content type 'application/x-gzip' length 282833 bytes (276 KB)

downloaded 276 KB

trying URL 'https://www.stats.bris.ac.uk/R/src/contrib/readxl_1.3.1.tar.gz'
Content type 'application/x-gzip' length 2056165 bytes (2.0 MB)

downloaded 2.0 MB

trying URL 'https://www.stats.bris.ac.uk/R/src/contrib/pbkrtest_0.5.1.tar.gz'
Content type 'application/x-gzip' length 246327 bytes (240 KB)

downloaded 240 KB

trying URL 'https://www.stats.bris.ac.uk/R/src/contrib/rio_0.5.27.tar.gz'
Content type 'application/x-gzip' length 444681 bytes (434 KB)

downloaded 434 KB

trying URL 'https://www.stats.bris.ac.uk/R/src/contrib/RcppEigen_0.3.3.9.1.tar.gz'
Content type 'application/x-gzip' length 1633360 bytes (1.6 MB)

downloaded 1.4 MB

Error in download.file(url, destfile, method, mode = "wb", ...) :
download from 'https://www.stats.bris.ac.uk/R/src/contrib/RcppEigen_0.3.3.9.1.tar.gz' failed
In addition: Warning messages:
1: In download.file(url, destfile, method, mode = "wb", ...) :
downloaded length 1430194 != reported length 1633360
2: In download.file(url, destfile, method, mode = "wb", ...) :
URL 'https://www.stats.bris.ac.uk/R/src/contrib/RcppEigen_0.3.3.9.1.tar.gz': status was 'Failure when receiving data from the peer'
Warning in download.packages(pkgs, destdir = tmpd, available = available, :
download of package ‘RcppEigen’ failed
trying URL 'https://www.stats.bris.ac.uk/R/src/contrib/RcmdrMisc_2.7-1.tar.gz'
Content type 'application/x-gzip' length 38408 bytes (37 KB)

downloaded 37 KB

trying URL 'https://www.stats.bris.ac.uk/R/src/contrib/car_3.0-11.tar.gz'
Content type 'application/x-gzip' length 490173 bytes (478 KB)

downloaded 478 KB

trying URL 'https://www.stats.bris.ac.uk/R/src/contrib/effects_4.2-0.tar.gz'
Content type 'application/x-gzip' length 2256933 bytes (2.2 MB)

downloaded 2.2 MB

trying URL 'https://www.stats.bris.ac.uk/R/src/contrib/lme4_1.1-27.1.tar.gz'
Content type 'application/x-gzip' length 3311365 bytes (3.2 MB)

downloaded 3.2 MB

trying URL 'https://www.stats.bris.ac.uk/R/src/contrib/Rcmdr_2.7-1.tar.gz'
Content type 'application/x-gzip' length 4817926 bytes (4.6 MB)

downloaded 4.5 MB

Error in download.file(url, destfile, method, mode = "wb", ...) :
download from 'https://www.stats.bris.ac.uk/R/src/contrib/Rcmdr_2.7-1.tar.gz' failed
In addition: Warning messages:
1: In download.file(url, destfile, method, mode = "wb", ...) :
downloaded length 4732786 != reported length 4817926
2: In download.file(url, destfile, method, mode = "wb", ...) :
URL 'https://www.stats.bris.ac.uk/R/src/contrib/Rcmdr_2.7-1.tar.gz': status was 'Failure when receiving data from the peer'
Warning in download.packages(pkgs, destdir = tmpd, available = available, :
download of package ‘Rcmdr’ failed
ERROR: failed to lock directory ‘/home/alain/R/x86_64-pc-linux-gnu-library/3.6’ for modifying
Try removing ‘/home/alain/R/x86_64-pc-linux-gnu-library/3.6/00LOCK-vctrs’
ERROR: dependency ‘RcppEigen’ is not available for package ‘lme4’

  • removing ‘/home/alain/R/x86_64-pc-linux-gnu-library/3.6/lme4’
    ERROR: dependency ‘vctrs’ is not available for package ‘pillar’
  • removing ‘/home/alain/R/x86_64-pc-linux-gnu-library/3.6/pillar’
    ERROR: dependency ‘vctrs’ is not available for package ‘hms’
  • removing ‘/home/alain/R/x86_64-pc-linux-gnu-library/3.6/hms’
    ERROR: dependency ‘vctrs’ is not available for package ‘tidyselect’
  • removing ‘/home/alain/R/x86_64-pc-linux-gnu-library/3.6/tidyselect’
    ERROR: dependency ‘lme4’ is not available for package ‘effects’
  • removing ‘/home/alain/R/x86_64-pc-linux-gnu-library/3.6/effects’
    ERROR: dependencies ‘pillar’, ‘vctrs’ are not available for package ‘tibble’
  • removing ‘/home/alain/R/x86_64-pc-linux-gnu-library/3.6/tibble’
    ERROR: dependency ‘hms’ is not available for package ‘progress’
  • removing ‘/home/alain/R/x86_64-pc-linux-gnu-library/3.6/progress’
    ERROR: dependency ‘tibble’ is not available for package ‘ggplot2’
  • removing ‘/home/alain/R/x86_64-pc-linux-gnu-library/3.6/ggplot2’
    ERROR: dependency ‘tibble’ is not available for package ‘forcats’
  • removing ‘/home/alain/R/x86_64-pc-linux-gnu-library/3.6/forcats’
    ERROR: dependencies ‘hms’, ‘tibble’ are not available for package ‘readr’
  • removing ‘/home/alain/R/x86_64-pc-linux-gnu-library/3.6/readr’
    ERROR: dependency ‘tibble’ is not available for package ‘cellranger’
  • removing ‘/home/alain/R/x86_64-pc-linux-gnu-library/3.6/cellranger’
    ERROR: dependencies ‘tibble’, ‘tidyselect’, ‘vctrs’, ‘pillar’ are not available for package ‘dplyr’
  • removing ‘/home/alain/R/x86_64-pc-linux-gnu-library/3.6/dplyr’
    ERROR: dependencies ‘dplyr’, ‘tibble’, ‘tidyselect’, ‘vctrs’ are not available for package ‘tidyr’
  • removing ‘/home/alain/R/x86_64-pc-linux-gnu-library/3.6/tidyr’
    ERROR: dependency ‘ggplot2’ is not available for package ‘viridis’
  • removing ‘/home/alain/R/x86_64-pc-linux-gnu-library/3.6/viridis’
    ERROR: dependencies ‘forcats’, ‘hms’, ‘readr’, ‘tibble’, ‘tidyselect’, ‘vctrs’ are not available for package ‘haven’
  • removing ‘/home/alain/R/x86_64-pc-linux-gnu-library/3.6/haven’
    ERROR: dependencies ‘cellranger’, ‘tibble’, ‘progress’ are not available for package ‘readxl’
  • removing ‘/home/alain/R/x86_64-pc-linux-gnu-library/3.6/readxl’
    ERROR: dependencies ‘dplyr’, ‘tibble’, ‘tidyr’ are not available for package ‘broom’
  • removing ‘/home/alain/R/x86_64-pc-linux-gnu-library/3.6/broom’
    ERROR: dependencies ‘ggplot2’, ‘viridis’ are not available for package ‘Hmisc’
  • removing ‘/home/alain/R/x86_64-pc-linux-gnu-library/3.6/Hmisc’
    ERROR: dependencies ‘haven’, ‘readxl’, ‘tibble’ are not available for package ‘rio’
  • removing ‘/home/alain/R/x86_64-pc-linux-gnu-library/3.6/rio’
    ERROR: dependencies ‘lme4’, ‘broom’, ‘dplyr’ are not available for package ‘pbkrtest’
  • removing ‘/home/alain/R/x86_64-pc-linux-gnu-library/3.6/pbkrtest’
    ERROR: dependencies ‘pbkrtest’, ‘rio’, ‘lme4’ are not available for package ‘car’
  • removing ‘/home/alain/R/x86_64-pc-linux-gnu-library/3.6/car’
    ERROR: dependencies ‘car’, ‘Hmisc’, ‘haven’, ‘readxl’ are not available for package ‘RcmdrMisc’
  • removing ‘/home/alain/R/x86_64-pc-linux-gnu-library/3.6/RcmdrMisc’

The downloaded source packages are in
‘/tmp/RtmpCxgScz/downloaded_packages’
There were 23 warnings (use warnings() to see them)

library(Rcmdr)
Error in library(Rcmdr) : there is no package called ‘Rcmdr’
install.packages("Rcmdr", repos = "https://cran.rstudio.com/")
Installing package into ‘/home/alain/R/x86_64-pc-linux-gnu-library/3.6’
(as ‘lib’ is unspecified)
also installing the dependencies ‘pillar’, ‘tidyr’, ‘ggplot2’, ‘viridis’, ‘forcats’, ‘hms’, ‘readr’, ‘tibble’, ‘tidyselect’, ‘vctrs’, ‘cellranger’, ‘progress’, ‘broom’, ‘dplyr’, ‘Hmisc’, ‘haven’, ‘readxl’, ‘pbkrtest’, ‘rio’, ‘RcppEigen’, ‘RcmdrMisc’, ‘car’, ‘effects’, ‘lme4’

trying URL 'https://cran.rstudio.com/src/contrib/pillar_1.6.1.tar.gz'
Content type 'application/x-gzip' length 1111747 bytes (1.1 MB)

downloaded 1.1 MB

trying URL 'https://cran.rstudio.com/src/contrib/tidyr_1.1.3.tar.gz'
Content type 'application/x-gzip' length 707909 bytes (691 KB)

downloaded 691 KB

trying URL 'https://cran.rstudio.com/src/contrib/ggplot2_3.3.5.tar.gz'
Content type 'application/x-gzip' length 3063309 bytes (2.9 MB)

downloaded 2.9 MB

trying URL 'https://cran.rstudio.com/src/contrib/viridis_0.6.1.tar.gz'
Content type 'application/x-gzip' length 3054905 bytes (2.9 MB)

downloaded 2.9 MB

trying URL 'https://cran.rstudio.com/src/contrib/forcats_0.5.1.tar.gz'
Content type 'application/x-gzip' length 258301 bytes (252 KB)

downloaded 252 KB

trying URL 'https://cran.rstudio.com/src/contrib/hms_1.1.0.tar.gz'
Content type 'application/x-gzip' length 43142 bytes (42 KB)

downloaded 42 KB

trying URL 'https://cran.rstudio.com/src/contrib/readr_1.4.0.tar.gz'
Content type 'application/x-gzip' length 488946 bytes (477 KB)

downloaded 477 KB

trying URL 'https://cran.rstudio.com/src/contrib/tibble_3.1.2.tar.gz'
Content type 'application/x-gzip' length 686145 bytes (670 KB)

downloaded 670 KB

trying URL 'https://cran.rstudio.com/src/contrib/tidyselect_1.1.1.tar.gz'
Content type 'application/x-gzip' length 92088 bytes (89 KB)

downloaded 89 KB

trying URL 'https://cran.rstudio.com/src/contrib/vctrs_0.3.8.tar.gz'
Content type 'application/x-gzip' length 782608 bytes (764 KB)

downloaded 764 KB

trying URL 'https://cran.rstudio.com/src/contrib/cellranger_1.1.0.tar.gz'
Content type 'application/x-gzip' length 63857 bytes (62 KB)

downloaded 62 KB

trying URL 'https://cran.rstudio.com/src/contrib/progress_1.2.2.tar.gz'
Content type 'application/x-gzip' length 29506 bytes (28 KB)

downloaded 28 KB

trying URL 'https://cran.rstudio.com/src/contrib/broom_0.7.8.tar.gz'
Content type 'application/x-gzip' length 632611 bytes (617 KB)

downloaded 617 KB

trying URL 'https://cran.rstudio.com/src/contrib/dplyr_1.0.7.tar.gz'
Content type 'application/x-gzip' length 852103 bytes (832 KB)

downloaded 832 KB

trying URL 'https://cran.rstudio.com/src/contrib/Hmisc_4.5-0.tar.gz'
Content type 'application/x-gzip' length 775444 bytes (757 KB)

downloaded 757 KB

trying URL 'https://cran.rstudio.com/src/contrib/haven_2.4.1.tar.gz'
Content type 'application/x-gzip' length 282833 bytes (276 KB)

downloaded 276 KB

trying URL 'https://cran.rstudio.com/src/contrib/readxl_1.3.1.tar.gz'
Content type 'application/x-gzip' length 2056165 bytes (2.0 MB)

downloaded 2.0 MB

trying URL 'https://cran.rstudio.com/src/contrib/pbkrtest_0.5.1.tar.gz'
Content type 'application/x-gzip' length 246327 bytes (240 KB)

downloaded 240 KB

trying URL 'https://cran.rstudio.com/src/contrib/rio_0.5.27.tar.gz'
Content type 'application/x-gzip' length 444681 bytes (434 KB)

downloaded 434 KB

trying URL 'https://cran.rstudio.com/src/contrib/RcppEigen_0.3.3.9.1.tar.gz'
Content type 'application/x-gzip' length 1633360 bytes (1.6 MB)

downloaded 1.6 MB

trying URL 'https://cran.rstudio.com/src/contrib/RcmdrMisc_2.7-1.tar.gz'
Content type 'application/x-gzip' length 38408 bytes (37 KB)

downloaded 37 KB

trying URL 'https://cran.rstudio.com/src/contrib/car_3.0-11.tar.gz'
Content type 'application/x-gzip' length 490173 bytes (478 KB)

downloaded 478 KB

trying URL 'https://cran.rstudio.com/src/contrib/effects_4.2-0.tar.gz'
Content type 'application/x-gzip' length 2256933 bytes (2.2 MB)

downloaded 2.2 MB

trying URL 'https://cran.rstudio.com/src/contrib/lme4_1.1-27.1.tar.gz'
Content type 'application/x-gzip' length 3311365 bytes (3.2 MB)

downloaded 3.2 MB

trying URL 'https://cran.rstudio.com/src/contrib/Rcmdr_2.7-1.tar.gz'
Content type 'application/x-gzip' length 4817926 bytes (4.6 MB)

downloaded 4.6 MB

ERROR: failed to lock directory ‘/home/alain/R/x86_64-pc-linux-gnu-library/3.6’ for modifying
Try removing ‘/home/alain/R/x86_64-pc-linux-gnu-library/3.6/00LOCK-vctrs’
ERROR: failed to lock directory ‘/home/alain/R/x86_64-pc-linux-gnu-library/3.6’ for modifying
Try removing ‘/home/alain/R/x86_64-pc-linux-gnu-library/3.6/00LOCK-RcppEigen’
ERROR: dependency ‘vctrs’ is not available for package ‘pillar’

  • removing ‘/home/alain/R/x86_64-pc-linux-gnu-library/3.6/pillar’
    ERROR: dependency ‘vctrs’ is not available for package ‘hms’
  • removing ‘/home/alain/R/x86_64-pc-linux-gnu-library/3.6/hms’
    ERROR: dependency ‘vctrs’ is not available for package ‘tidyselect’
  • removing ‘/home/alain/R/x86_64-pc-linux-gnu-library/3.6/tidyselect’
    ERROR: dependency ‘RcppEigen’ is not available for package ‘lme4’
  • removing ‘/home/alain/R/x86_64-pc-linux-gnu-library/3.6/lme4’
    ERROR: dependencies ‘pillar’, ‘vctrs’ are not available for package ‘tibble’
  • removing ‘/home/alain/R/x86_64-pc-linux-gnu-library/3.6/tibble’
    ERROR: dependency ‘hms’ is not available for package ‘progress’
  • removing ‘/home/alain/R/x86_64-pc-linux-gnu-library/3.6/progress’
    ERROR: dependency ‘lme4’ is not available for package ‘effects’
  • removing ‘/home/alain/R/x86_64-pc-linux-gnu-library/3.6/effects’
    ERROR: dependency ‘tibble’ is not available for package ‘ggplot2’
  • removing ‘/home/alain/R/x86_64-pc-linux-gnu-library/3.6/ggplot2’
    ERROR: dependency ‘tibble’ is not available for package ‘forcats’
  • removing ‘/home/alain/R/x86_64-pc-linux-gnu-library/3.6/forcats’
    ERROR: dependencies ‘hms’, ‘tibble’ are not available for package ‘readr’
  • removing ‘/home/alain/R/x86_64-pc-linux-gnu-library/3.6/readr’
    ERROR: dependency ‘tibble’ is not available for package ‘cellranger’
  • removing ‘/home/alain/R/x86_64-pc-linux-gnu-library/3.6/cellranger’
    ERROR: dependencies ‘tibble’, ‘tidyselect’, ‘vctrs’, ‘pillar’ are not available for package ‘dplyr’
  • removing ‘/home/alain/R/x86_64-pc-linux-gnu-library/3.6/dplyr’
    ERROR: dependencies ‘dplyr’, ‘tibble’, ‘tidyselect’, ‘vctrs’ are not available for package ‘tidyr’
  • removing ‘/home/alain/R/x86_64-pc-linux-gnu-library/3.6/tidyr’
    ERROR: dependency ‘ggplot2’ is not available for package ‘viridis’
  • removing ‘/home/alain/R/x86_64-pc-linux-gnu-library/3.6/viridis’
    ERROR: dependencies ‘forcats’, ‘hms’, ‘readr’, ‘tibble’, ‘tidyselect’, ‘vctrs’ are not available for package ‘haven’
  • removing ‘/home/alain/R/x86_64-pc-linux-gnu-library/3.6/haven’
    ERROR: dependencies ‘cellranger’, ‘tibble’, ‘progress’ are not available for package ‘readxl’
  • removing ‘/home/alain/R/x86_64-pc-linux-gnu-library/3.6/readxl’
    ERROR: dependencies ‘dplyr’, ‘tibble’, ‘tidyr’ are not available for package ‘broom’
  • removing ‘/home/alain/R/x86_64-pc-linux-gnu-library/3.6/broom’
    ERROR: dependencies ‘ggplot2’, ‘viridis’ are not available for package ‘Hmisc’
  • removing ‘/home/alain/R/x86_64-pc-linux-gnu-library/3.6/Hmisc’
    ERROR: dependencies ‘haven’, ‘readxl’, ‘tibble’ are not available for package ‘rio’
  • removing ‘/home/alain/R/x86_64-pc-linux-gnu-library/3.6/rio’
    ERROR: dependencies ‘lme4’, ‘broom’, ‘dplyr’ are not available for package ‘pbkrtest’
  • removing ‘/home/alain/R/x86_64-pc-linux-gnu-library/3.6/pbkrtest’
    ERROR: dependencies ‘pbkrtest’, ‘rio’, ‘lme4’ are not available for package ‘car’
  • removing ‘/home/alain/R/x86_64-pc-linux-gnu-library/3.6/car’
    ERROR: dependencies ‘car’, ‘Hmisc’, ‘haven’, ‘readxl’ are not available for package ‘RcmdrMisc’
  • removing ‘/home/alain/R/x86_64-pc-linux-gnu-library/3.6/RcmdrMisc’
    ERROR: dependencies ‘RcmdrMisc’, ‘car’, ‘effects’, ‘lme4’ are not available for package ‘Rcmdr’
  • removing ‘/home/alain/R/x86_64-pc-linux-gnu-library/3.6/Rcmdr’

The downloaded source packages are in
‘/tmp/RtmpCxgScz/downloaded_packages’
There were 25 warnings (use warnings() to see them)

library(Rcmdr)
Error in library(Rcmdr) : there is no package called ‘Rcmdr’

@naly-rak
Copy link

I need help please!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment