Unable to load tidymodels library

Hi All,

I am unable to load tidy models library in R, I tried to re install it as well but that is not working as well. Can someone help me out.

When I try to load library(tidymodels), I get this error:

Error: package or namespace load failed for ‘tidymodels’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
namespace ‘cli’ 3.4.1 is already loaded, but >= 3.6.1 is required
In addition: Warning message:
package ‘tidymodels’ was built under R version 4.2.3

When I try to re install tidyverse, I got this error, but first they ask me to restart R and then install it and when I do that, I get error in install.packages and then they again ask me to restart and this goes on in a loop until I click cancel.

Restarting R session...

install.packages("tidymodels")
Error in install.packages : Updating loaded packages

Can someone please help me out and Thank you for the help in advance.

Welcome to the forum.

You need to update "cli".

Start a new session and do:

install.packages("cli")

Then try installing tidymodels.

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.