Error R csv: Error in read.table(file = file, header = header, sep = sep, quote = quote, : 'file' must be a character string or connection
<p>I'm struggling with an R tutorial for the package MiRLAB although I'm not sure whether the problem is related to the package's function.</p>

<p>I want to use the function <code>Pearson()</code>, which only accepts .csv files. I've loaded a file perfectly but when I've tried the function <code>Pearson()</code> (the same happens with MI, IDA and Lasso), this error message appeared: </p>

<blockquote>
  <p>Error in read.table(file = file, header = header, sep = sep, quote =
  quote,  : 'file' must be a character string or connection</p>
</blockquote>

<pre><code>dataset=read.csv("ArabPrueba1.csv", sep = ";")
cause= 3:23
effect= 24:44
pearson=Pearson(dataset,cause,effect)
</code></pre>

<p>Any idea on how can I change the file or the command line so it will be recognized by the function? Might it be a problem with the csv file or something else? In the example of the tutorial the file is directly taken from the package so this approach is not covered.</p>

<p>Thank you in advance</p>