title: Error: could not find function "includePackage"
body: <p>I am trying to execute Random Forest algorithm on SparkR, with Spark 1.5.1 installed. I am not getting clear idea, why i am getting the error - </p>
  
  <pre><code>  Error: could not find function "includePackage"
  </code></pre>
  
  <p>Further even if I use mapPartitions function in my code , i get the error saying -</p>
  
  <pre><code>  Error: could not find function "mapPartitions"
  </code></pre>
  
  <p>Please find the below code:</p>
  
  <pre><code>rdd &lt;- SparkR:::textFile(sc, "http://localhost:50070/explorer.html#/Datasets/Datasets/iris.csv",5) 
  
  includePackage(sc,randomForest) 
  
  rf &lt;- mapPartitions(rdd, function(input) {
   ## my function code for RF
  }
  </code></pre>