title: Error in requireNamespaceQuietStop("e1071") : package e1071 is required
body: <pre><code>&gt; traceback()
  9: stop(paste("package", package, "is required"))
  8: requireNamespaceQuietStop("e1071")
  7: postResample(data[, "pred"], data[, "obs"])
  6: ctrl$summaryFunction(testOutput, lev, method)
  5: evalSummaryFunction(y, wts = weights, ctrl = trControl, lev = classLevels, 
         metric = metric, method = method)
  4: train.default(x, y, weights = w, ...)
  3: train(x, y, weights = w, ...)
  2: train.formula(classe ~ ., data = train[1:10, ], method = "gbm", 
         trControl = trainCtrl)
  1: train(classe ~ ., data = train[1:10, ], method = "gbm", trControl = trainCtrl)
  &gt; ?postResample
  </code></pre>
  
  <p><hr>
  I am using the caret package. Getting error when using train function</p>
  
  <pre><code>trainCtrl = trainControl(method='cv', p=1, number=2)
  model = train(classe ~ ., data=train[1:10,], method="gbm", trControl=trainCtrl)
  </code></pre>
  
  <blockquote>
    <p>Error in requireNamespaceQuietStop("e1071") : package e1071 is
    required</p>
  </blockquote>
  
  <p>I can install and library() the e1071 package, but I don't know why I have to do that and if it indicates some deeper problem. I wiped out my entire R installation and reinstalled it, but did not fix.</p>
  
  <hr>
  
  <p><strong>OS: Mac Yosemite 10.10.4</strong></p>
  
  <p><strong>R Version: 3.2.1_1</strong></p>
  
  <p><strong>Caret Version: 6.0-52</strong></p>
  
  <p><strong>RStudio Version 0.99.467</strong> </p>