#please check caret version and report to this list
packageVersion('caret')
#remove this version and the bug
remove.packages(c('caret'))
library(devtools)
#install Caret Package version 6.0.52, without the bug
install_version(package='caret',version='6.0-52')
run again and report ;)