failure to load tidyverse

I have loaded tidyverse many a times earlier. Today it keeps throwing me some or the other error. The last error is
Error: package or namespace load failed for ‘tidyverse’:
.onAttach failed in attachNamespace() for 'tidyverse', details:
call: NULL
error: package or namespace load failed for ‘tidyr’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
namespace ‘cli’ 3.6.0 is already loaded, but >= 3.6.1 is required

actually i am also encountering another error: fatal error: unexpected exception: Bad allocation if I am trying to run any code

Some ideas: check if your hard drive is full or close to, delete a few files if it is. Restart your computer. In a R CLI or RGUI session (not RStudio), check that the version of R loaded is the latest on your system, and use install.packages("tidyverse") to make sure you have the latest versions. Specifically run install.packages("cli"). Then open RStudio again, check that the version of R loaded is indeed the latest on your system, and try again library("tidyverse").

Thank you. I installed cli and updated "xfun" package. This seems to have resolved the issue, it seems.

1 Like

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.