Have you the newest R version 3.5.1? Maybe the caret package needs the newest version. Otherwise install modelmetrics manually. I use caret too but it did install modelmetrics automatically.