tidyverse function not installing

I have been trying to use tidyverse and when i go to install the package it comes up with this. Would anyone know how to solve this?

library(tidyverse)
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(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
namespace ‘rlang’ 1.1.0 is already loaded, but >= 1.1.1 is required

As a quick check, have you done install.packages("tidyverse") once before issuing the library command?

yes i have and it says the same thing when i try to run the code

Hi @anton.jako , you need install tidyr and update of a new version rlang libraries. This said the error help.

I have done that but after the update is complete, when i look in the update tab, rlang is still there and hasnt been updated

this is what it says when i try to install tidyr

library(tidyr)
Error: package or namespace load failed for ‘tidyr’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
namespace ‘rlang’ 1.1.0 is already loaded, but >= 1.1.1 is required

first install a more recent version of rlang

install.packages("rlang")

then tidyr

install.packages("tidyr")

finally tidyverse

install.packages("tidyverse")

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.