I am trying to run the confusionMatrix function but it shows this error and when I try to install the package it shows the error in bold below it.
Error: package e1071 is required Traceback:
- confusionMatrix(factor(test_data$area, levels = 1:100), factor(test_data$pred_rf, . levels = 1:100))
- confusionMatrix.default(factor(test_data$area, levels = 1:100), . factor(test_data$pred_rf, levels = 1:100))
- getFromNamespace("confusionMatrix.table", "caret")(classTable, . positive, prevalence = prevalence, mode = mode)
- requireNamespaceQuietStop("e1071")
- stop(paste("package", package, "is required"), call. = FALSE)
also installing the dependency ‘proxy’ Warning message in install.packages("e1071"): “installation of package ‘proxy’ had non-zero exit status”Warning message in install.packages("e1071"): “installation of package ‘e1071’ had non-zero exit status”Updating HTML index of packages in '.Library' Making 'packages.html' ... done
How do I solve this?