I have a string in R (using RStudio)
legend <- 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')
which runs fine when I just run the source code by line. But when I source the code it throws an error
Error in source(con, echo = echo, print.eval = print.eval, max.deparse.length = max.deparse.length, :
con:29:52: unexpected INCOMPLETE_STRING
Where could be the problem?
Update from the discussion posted on RStudio:
http://support.rstudio.org/help/discussions/problems/3945-bug-when-sourcing-the-application
relevant portion: