-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to install devtools #717
Comments
Have you tried that suggestion? |
I managed to install older version of
Too static listing of versions can be passed down do repmis package, see https://www.r-bloggers.com/2013/02/installoldpackages-a-repmis-command-for-installing-old-r-package-versions/ Basically, There was also an In your particular case, you could be saved by https://eddelbuettel.github.io/r2u/ as you are using relatively recent Ubuntu 20.04 (see https://stackoverflow.com/questions/63272046/how-to-install-devtools-package-in-r-3-4-0/77104544?noredirect=1#comment135926254_77104544). |
This issue is probably not relevant today, but please reopen if you still have problems. |
My lab has a Ubuntu version 20.04.4 LTS (Focal Fossa) and I have spent this past week trying to install devtools to no avail. I tried so many things but cannot seem to install it.
I even tried following these sudo tips among other tips but also failed.
https://www.digitalocean.com/community/tutorials/how-to-install-r-packages-using-devtools-on-ubuntu-18-04
I also tried conda but that also failed:
https://anaconda.org/conda-forge/r-devtools
Has anyone faced something similar and can help me please?
if (!requireNamespace("devtools", quietly = TRUE)) install.packages("devtools")
I also tried all other options in the this link such as: https://stackoverflow.com/questions/20923209/problems-installing-the-devtools-package
sudo apt-get install libcurl4-openssl-dev libssl-dev
which outputs the following:
sudo apt-get install libcurl4-openssl-dev libssl-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libcurl4-openssl-dev is already the newest version (7.68.0-1ubuntu2.12).
libssl-dev is already the newest version (1.1.1f-1ubuntu2.16).
0 upgraded, 0 newly installed, 0 to remove and 16 not upgraded.
Did you post your log file? If not, add it now.
added below
if (!requireNamespace("devtools", quietly = TRUE)) install.packages("devtools")
Installing package into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
also installing the dependencies ‘zip’, ‘gert’, ‘usethis’
trying URL https://cloud.r-project.org/src/contrib/zip_2.2.0.tar.gz
Content type 'application/x-gzip' length 114391 bytes (111 KB)
downloaded 111 KB
trying URL https://cloud.r-project.org/src/contrib/gert_1.7.0.tar.gz
Content type 'application/x-gzip' length 118288 bytes (115 KB)
downloaded 115 KB
trying URL https://cloud.r-project.org/src/contrib/usethis_2.1.6.tar.gz
Content type 'application/x-gzip' length 342349 bytes (334 KB)
downloaded 334 KB
trying URL 'https://cloud.r-project.org/src/contrib/devtools_2.4.4.tar.gz'
Content type 'application/x-gzip' length 374492 bytes (365 KB)
downloaded 365 KB
ERROR: failed to lock directory ‘/usr/local/lib/R/site-library’ for modifying
Try removing ‘/usr/local/lib/R/site-library/00LOCK-zip’
ERROR: dependency ‘zip’ is not available for package ‘gert’
removing ‘/usr/local/lib/R/site-library/gert’
ERROR: dependency ‘gert’ is not available for package ‘usethis’
removing ‘/usr/local/lib/R/site-library/usethis’
ERROR: dependency ‘usethis’ is not available for package ‘devtools’
removing ‘/usr/local/lib/R/site-library/devtools’
The downloaded source packages are in
‘/tmp/Rtmp8Of1D0/downloaded_packages’
Warning messages:
1: In install.packages("devtools") :
installation of package ‘zip’ had non-zero exit status
2: In install.packages("devtools") :
installation of package ‘gert’ had non-zero exit status
3: In install.packages("devtools") :
installation of package ‘usethis’ had non-zero exit status
4: In install.packages("devtools") :
installation of package ‘devtools’ had non-zero exit status
The text was updated successfully, but these errors were encountered: