I used the package neuralnet to build a classification model in R. However, I encountered the famous error:
neuralnet
Error in cbind(1, pred) %*% weights [