## Not run: 
# #load(url("http://topepo.github.io/caret/exampleModels.RData"))
# 
# resamps <- resamples(list(CART = rpartFit,
#                           CondInfTree = ctreeFit,
#                           MARS = earthFit))
# 
# difs <- diff(resamps)
# 
# difs
# 
# summary(difs)
# 
# compare_models(rpartFit, ctreeFit)
# ## End(Not run)
Run the code above in your browser using DataLab