caretModelSpec function

Generate a specification for fitting a caret model