I installed the tidymodels package with install.packages("tidymodels")
and then called the package with library(tidymodels)
. This results in an error Error in library(tidymodels) : there is no package called ‘tidymodels’
What is the matter?
R gives a message like this in the process
This is the error message I see in the output
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
there is no package called 'future.apply'
Calls: <Anonymous> ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
Execution halted
ERROR: lazy loading failed for package 'recipes'
* removing 'C:/Users/user123/Documents/R/win-library/4.1/recipes'
Warning in install.packages :
installation of package ‘recipes’ had non-zero exit status
ERROR: dependency 'recipes' is not available for package 'tidymodels'
* removing 'C:/Users/user123/Documents/R/win-library/4.1/tidymodels'
Warning in install.packages :
installation of package ‘tidymodels’ had non-zero exit status
Also, this confusing warning message appears WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
But Rtools is not available for my version of R (4.1.2)