How to use write.df store a csv file when using Sparkr and Rstudio?
<p>I am studying Sparkr. I have a csv file:</p>
<pre><code>a &lt;- read.df(sqlContext,&quot;./mine/a2014.csv&quot;,&quot;csv&quot;)
</code></pre>
<p>I want to use write.df to store this file. However, when I use:</p>
<pre><code>write.df(a,&quot;mine/a.csv&quot;)
</code></pre>
<p>I get a folder called a.csv, in which there is no csv file at all.</p>