title: String with hyphen in R
body: <p>I have a string in R (using RStudio)</p>
  
  <pre><code>legend &lt;- c('Up to 5 minutes', '5-10 minutes', '10–20 minutes', '20–40 minutes', '40–80 minutes', '80-160 minutes', '160-320 minutes', '5.3-10.6 hours', '10.6-21.2 hours', '1-2 days')
  </code></pre>
  
  <p>which runs fine when I just run the source code by line. But when I source the code it throws an error </p>
  
  <pre><code>Error in source(con, echo = echo, print.eval = print.eval, max.deparse.length = max.deparse.length,  : 
    con:29:52: unexpected INCOMPLETE_STRING
  </code></pre>
  
  <p>Where could be the problem?</p>