
Nothing worked thus far and I do not know what to do. I also tried using the code below: sudo apt-key adv -keyserver -recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9 I ended up in such a deep rabbit hole that I cannot even remember how many fixes I tried and in which combination.
I also tried installing packages from the RStudio's toolbar ( Tools > Install Packages.). I restarted RStudio at each step and/or closed it and re-opened it. I unticked the use secure download method for HTTP box from the RStudio's Global Options ( Packages tab). I changed the primary CRAN repository from the RStudio's Global Options ( Packages tab). I opened the console as a root with sudo -i R and try installing the packages from there. Not to mention the sudo apt-get install g++. I used sudo apt install for libcurl4-openssl-dev, libssl-dev, and libxml2-dev. I run sudo apt-get install build-essential too. I also run sudo apt install r-base-dev. I run both sudo apt update and sudo apt upgrade in the terminal. I used the verbose version of the function install.packages(), specifying the arguments repos and dependencies. I have tried many things so far, but they were all unsuccessful. Installation of package ‘tidyverse’ had non-zero exit status The tidyverse package Warning in install.packages : URL '': status was 'Couldn't resolve host name'Įrror in download.file(url, destfile, method, mode = "wb". The here package Installing package into ‘/home/valerio/R/x86_64-pc-linux-gnu-library/4.0’ The error outputīelow is the output when I run install.packages("here") and install.packages("tidyverse"), but the same happens with any package. This behaviour is consistent across packages, as I tried installing tidyverse, here, devtools, usethis, reticulate, etc. Whenever I try to install a package with the install.packages() function in RStudio, the console returns errors. GNU General Public License versions 2 or 3.įor more information about these matters see You are welcome to redistribute it under the terms of the R is free software and comes with ABSOLUTELY NO WARRANTY. R version 4.0.4 () - "Lost Library Book"Ĭopyright (C) 2021 The R Foundation for Statistical Computing This is the output of the R -version command when I run it in my terminal. This is the output of the lsb_release -a command when I run it in my terminal.
Below I report the details of the software I am running on my local machine.