Error: cannot allocate vector of size 614.0 Gb

For discussions related to modeling, machine learning and deep learning. Related packages include caret, This issue came while modelling and running lm code?

Can you tell me the issue

model <- train(admissions ~ ., data = trainData, method = "lm")

Without a reprex it is hard to know what is happening here.

My best guess is that you are including a ID variable as a categorical variable, which is then dummied, leading to a very large matrix that you are unable to allocate. If that is the case, remove that variable from trainData and try again.