title: Cannot read csv into R Markdown: Error in file(file, "rt")
body: <p>I have been reading other questions on this topic (see <a href="https://stackoverflow.com/questions/25834007/read-table-and-read-csv-both-error-in-rmd">read.table() and read.csv both Error in Rmd</a>), but I believe I have set my working directory fine and the answers are not adequately answering my question... </p>
  
  <p>Here is my code:</p>
  
  <pre><code>---
  title: "WQ"
  author: "A"
  date: "October 13, 2017"
  output:
    html_document: 
      fig_height: 6
      fig_width: 12
  classoption: landscape
  ---
  
  
  ```{r}
  setwd("C:/Users/K/Box/Projects/DRIP/3. Data/working/R_markdown")
  x &lt;- read.csv("Nash_longform_subset.csv",as.is=T)
  y &lt;- read.csv("Nash_longform.csv", as.is=T)
  
  ```{r}
  </code></pre>
  
  <p>All files and the R markdown file are in the <strong>same folder</strong> (set above in the code). The code itself runs perfectly, but will not export through R Markdown...</p>
  
  <p>And I get the error:</p>
  
  <pre><code>x Line 14 Error in file(file, "rt"): cannot open the connection calls: 
  &lt;Anonymous&gt;... withVisible -&gt; eval -&gt; eval -&gt; read.csv -&gt; read.table -&gt; file
  </code></pre>