It seems like a corrupted file, try removing caret
, restarting your R session (Ctrl+Shift+F10) and installing caret
again.
Also please be aware that posting screenshots is considered a bad practice here, post formatted code instead,here is how to do it.