library(caret)
library(partykit)
model_iris <- ctree(formula = species~ ., data = train_iris)
Error in eval(predvars, data, env) : object 'species' not found
please help for this error ..... this error was find in may R studio ..... in the other has no error