title: Error trying to run the cubist function on a Kaggle R kernel
body: <p>I am trying to reproduce the results of an R scrip on the Kaggle R notebook. I have used the caret package to train the Boston House Price Dataset successfully. But when I try to create the final model using the cubist function I get an error message.</p>
  <pre><code>prepare the data transform using training data
  set.seed(7)
  x &lt;- dataset[, 1:13]
  y &lt;- dataset[, 14]
  preprocessParams &lt;- preProcess(x, method = c(&quot;BoxCox&quot;))
  transX &lt;- predict(preprocessParams, x)
  #train the final model
  finalModel &lt;- cubist(x = transX, y = y, committeess = 25)
  
  summary(finalModel)
  
  Error in cubist(x = transX, y = y, committeess = 25): could not find function &quot;cubist&quot;
  Traceback:
  </code></pre>