title: Expected LPAREN error when trying to loop in r
body: <p>I'm trying to run the following code:</p>
  
  <pre><code>    files &lt;- Sys.glob("*.csv")
      test &lt;- data.frame()
      for file in files {
        sally &lt;- read.csv(file, colClasses = c(status_id = "factor", text = "character"))
        test &lt;- rbind(test, sally)
      }
  </code></pre>
  
  <p>In line 3 I'm getting the following error:</p>
  
  <pre><code>    unexpected token 'file', expected 'LPAREN'
  </code></pre>
  
  <p>I've never had this issue with for loops before. Please help.</p>