problems with tidymodels

Hello
I have error messages with tidymodels (again). Below are some information, if any help. It is a problem for me because when i call a source file, the code fails because at the beginning of the code i call tidymodels, thanks !

library(tidymodels)
Error: Loading package or namespace failed for 'tidymodels' in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
Package 'dplyr' 1.1.2 is already loaded, but >= 1.1.4 is required.
Additionally: Advisory message:
Package 'tidymodels' was compiled with R version 4.3.3.

sessionInfo()
R version 4.3.0 (2023-04-21 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1

Restart R, and without any packages loaded update the dplyr package. You might need to update other packages as well.

One easy way to update all that need updating is using pak [1]:

pak::pkg_install("tidymodels")

[1] All about installing pak. — Installing pak • pak

1 Like

Many thanks, this package is so useful but i have a old laptop (2015 with win 7). I tried to update the R version but not the solution. I held the previous R version and will try to do your pak solution but fear to update all other packages given the context i explain. I let you know. Thanks again.

I did not suggest updating the R version, though, but updating the dplyr package.

Hello,

Yes, supermarco, like Gabor says, I think you need to update dplyr package, not the R version.

In that link you can check that the last version is 1.1.4. Maybe, If you have an older R version you'll get a problem with that. But try and let us know.

  • Lorena
1 Like

This topic was automatically closed 90 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.