When I use the function 'ODRF' for the first time in a R session, it works fine. If I repeat the function with or without changing anything, it gives me error.
Error in { :
task 1 failed - "no applicable method for 'predict' applied to an object of class "call""
data(seeds, package = "ODRF")
set.seed(12)
train <- sample(1:209, 150)
seeds_train <- data.frame(seeds[train, ])
seeds_test <- data.frame(seeds[-train, ])
forest <- ODRF(varieties_of_wheat ~ ., seeds_train, split = "gini",
parallel = FALSE)
When I use the function 'ODRF' for the first time in a R session, it works fine. If I repeat the function with or without changing anything, it gives me error.
Error in { :
task 1 failed - "no applicable method for 'predict' applied to an object of class "call""