Nested cross validation with caret

Keywords´╝Ü nested cross-validation caret resampling

Question: 

I have worked with a small dataset and have used nested cross validation with the mlr package. However, caret has some advantages to test different models. So, I would like to know: Would anyone have any good suggestions (and an example, if possible) of how to implement nested cross validation using caret? Thank you very much.

Answers: