Apologies for not being able to generate a reprex, due to limitations in the current system
I am facing a situation in which we have had to copy-paste packages from one system to another while ensuring the same package and R versions. And I am loading all required
tidymodels packages step by step, as:
library(tune) library(generics) library(workflows) library(tidymodels)
However, when I try to run
tune_grid() from the
tune package, a part of the function fails to execute.
Debugging it, I realised the
required_packages function was not running correctly, giving the error message
no applicable method for 'required_pkgs' applied to an object of workflow.
I cannot get around figuring out how to resolve this as the code works completely fine in old environment, but some hypotheses I am considering are:
- Does the order in which I load packages matter?
- Can I somehow edit the actual function to force it to "identify" the required packages for a workflow object
My session info is: