Caret install error using newest verson of R

I need to install and use the caret package and I keep getting install errors. I have troubleshooted the issue using Copilot but still have not be able to resolve the issue. The error I get is > install.packages(caret) Error in install.packages : Updating loaded packages I have restarted and tried again. I have tired installing dependencies first. Installing with all dependencies. I have updated the version of R I am using and nothing is working.

Long shot, but is there any chance you needed to write install.packages("caret") using quotes?

1 Like

Can you run this exactly as it is and if it fails, then please copy-paste the full output here? Thanks.

install.packages("caret")