How do I get rid of the package e1071 installation error?

492 views Asked by At

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:

  1. confusionMatrix(factor(test_data$area, levels = 1:100), factor(test_data$pred_rf, . levels = 1:100))
  2. confusionMatrix.default(factor(test_data$area, levels = 1:100), . factor(test_data$pred_rf, levels = 1:100))
  3. getFromNamespace("confusionMatrix.table", "caret")(classTable, . positive, prevalence = prevalence, mode = mode)
  4. requireNamespaceQuietStop("e1071")
  5. 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?

0

There are 0 answers