Difficulty loading in tidyverse and other packages.


Been trying to load in tidyverse for last few hours, but different kind of errors and warning messages pop every time I try to load in. Errors read to me:

"Error: package or namespace load failed for ‘tidyverse’:
.onLoad failed in loadNamespace() for 'dplyr', details:
call: if (is_string(x)) asNamespace(x)
error: argument is not interpretable as logical
In addition: Warning messages:
1: In if (is_string(x)) asNamespace(x) :
the condition has length > 1 and only the first element will be used
2: In if (is_string(x)) asNamespace(x) :
the condition has length > 1 and only the first element will be used"...

Other times, it reads:
*** recursive gc invocation"

I'll appreciate if someone could help, please. Thanks. :smiley:

It looks like a paackage did not load


and then try tidyverse again.

I tried installing 'dplyr' before loading in 'tidyverse, but that doesn't seem to be working either.

Nothing really pops up when I press the command install.packages("dplyr").

This is what popped up after a while.

Warning in install.packages :
unable to access index for repository https://cran.mirror.ac.za/src/contrib:
cannot open URL 'https://cran.mirror.ac.za/src/contrib/PACKAGES'

Ouch. It looks like an access problem. Have a look at https://support.rstudio.com/hc/en-us/articles/360004067074-Managing-Packages-with-the-RStudio-IDE

Sorry to be of so little help.

This seems like 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 (http://cran.rstudio.com/) 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.

Ah, forgot that as I work from home.

Here’s how to configure your environment once you have identified the proxy: https://support.rstudio.com/hc/en-us/articles/200488488-Configuring-R-to-Use-an-HTTP-or-HTTPS-Proxy

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.