When I use the train() function from the caret package as follows:
model1 = train(class~., data = training_data, method = "rpart")
and t