title: Loading com.databricks.spark.csv via RStudio
body: <p>I have installed Spark-1.4.0.  I have also installed its R package SparkR and I am able to use it via Spark-shell and via RStudio, however, there is one difference I can not solve.</p>
  
  <p>When launching the SparkR-shell</p>
  
  <pre><code>./bin/sparkR --master local[7] --packages com.databricks:spark-csv_2.10:1.0.3
  </code></pre>
  
  <p>I can read a .csv-file as follows</p>
  
  <pre><code>flights &lt;- read.df(sqlContext, "data/nycflights13.csv", "com.databricks.spark.csv", header="true")
  </code></pre>
  
  <p>Unfortunately, when I start SparkR via RStudio (correctly setting my SPARK_HOME) I get the following error message:</p>
  
  <pre><code>15/06/16 16:18:58 ERROR RBackendHandler: load on 1 failed
  Caused by: java.lang.RuntimeException: Failed to load class for data source: com.databricks.spark.csv
  </code></pre>
  
  <p>I know I should load com.databricks:spark-csv_2.10:1.0.3 in a way, but I have no idea how to do this.  Could someone help me?</p>