Error Installing Tidyverse on RStudio

I have trouble installing tidyverse on R studio. when put in install.packages("tidyverse"), an error message would pop up. Does anyone know how to fix this?

I suspect this is a connectivity issue, R is not being able to connect to the CRAN repository you have selected, these are some things to try.

  • Choose a different CRAN repository, RStudios repository is a good choice ( or you could choose one that is geographically closer to you.
  • Disable secure download setting.
  • Check if your internet connection has traffic restrictions of some kind, like a firewall, proxy server, etc. This is usually the case when you are at work or school.

Just to add a little warning: it might be obvious, but be careful before deciding to disable "Use secure download method for HTTP", since this has implications for the trustworthiness of the downloaded material and the security of your system.

From the RStudio support page about secure package download:

Using an encrypted connection is strongly recommended as it provides much higher assurance that the code you are downloading is in fact from a legitimate CRAN mirror rather than from another server posing as one.

I also met this issue, it reminds that lib is not defined and I'm not able to install the R packages.
Did anyone solve the problem?
Thank you!

This is likely a different issue, I recommend you to open your own topic and post the complete console output you get so we can take a look and help you.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.