Syntax highlighter fails to recognize escaped (backslashed) quotation mark
Tinn-R Editor - GUI for R Language and Environment
Brought to you by:
jcfaria
The new syntax highlighter (Tinn-R version 3.0.2.7) fails to understand when a backslash is followed by a quotation mark. As a result the remaining part of the R script will be coloured as a quote. Example:
dataDF <- read.table(dataFile, sep="\t", quote="\"", header=T)
See the attached image. The previous version of the syntax highlighter (Tinn-R version 2.4.1.5) was able to handle this.
I think the problem is here: quote="\""
It should not be quote="\"
The backslash is necessary before the '"' character. See the default value in the help of the read.table function: quote = "\"'" - the syntax highlighter misunderstands this also.
OK, I will try to fix it in the next version of the project.
Thanks.
The bug was fixed!
You will see it in the next Tinn-R version (3.0.2.8).
With the version you are using an alternative is to use single quotes to this string: read.table (quote = '\"')
Thank you!
Sadly, it appears the bug is present again in Tinn-r 3.0.3.6
To be sure, I have uninstalled my existing Tinn'r using tinn'r s uninstaller and cleaned out the registry. I installed the most recent version from sourceforge;
creating an empty R document with the following testcode will demonstrate the problem:
test <- "testing without quotes"; message(test)
test2 <- "testing with three \"\"\" quote characters"; message(test2)
I reopen this ticket.
This shape is different from the previous one, but it is still a bug!
Until it can be fixed, write like below:
HTH,
J.C.Faria
Last edit: jcfaria 2014-03-16
Hi,
I'd like to include you in my network to share updates and stay in touch.
Accept: http://www.linkedin.com/blink?simpleRedirect=0QczoOe38Ue3wNe3sNcP8PcjARfkh9rCZFt65QqnpKqipSuzxlujtUp3RVpkJApn9xq7cCt7dBtmtvpnhFtCVFfmJB9C5QoORBt6BSrCAJt7dBtmsJr6RBfmtKqmJzon9Q9ClQqnpKimtBkClOs3Rx9zAJtmlJc7xKuCwJd34MoTFQbjRBfP9SbSkLrmZzbCVFp6lHrCBIbDtTtOYLeDdMt7hE&msgID=I7813757549_1&markAsRead=
You are receiving Invitation emails. Unsubscribe here: http://www.linkedin.com/blink?simpleRedirect=1QpmV5cylCsQkO9mlOhj8Bs4kO9n8JrCVFt4kO9ndDtm8Md2kSe3RIqm5JpipQs64MczxGcTdSpP9IcDoZp6Bx9z4Sc30OfmhF9z4JfmhFrioVbnlBrj1UrDFEbjgNc6dWt2QZp6BB9DhPpnlDnSlQqnpKqjRHpipBoCBOoTdytndKtiRBt6BSrCAJt7dBtmsJr6RBfmtKqmJzon9Q9B4ScSh5hSxmhD9JhB51fmVBqSZkp6BJ9DdKtjRQ9zAJtmlJc7xKuCwJd34MoTFQbjRBfP9SbSkLrmZzbCVFp6lHrCBIbDtTtOYLeDdMt7hE&msgID=I7813757549_1&markAsRead=
Learn why we included this at the following link: http://www.linkedin.com/blink?simpleRedirect=3wUdPgZp4BBr6dFt79x9DhPpnlDnSlQqnpKqjRHpipIsBlBoSBSsCljsClJrThPtmcZoioVbnlBrj1UrDFEbjgNc6dWt2QZpjYOtyZBbSRLoOVKqmhBqSVFr2VTtTsLbPFMt7hE&msgID=I7813757549_1&markAsRead=
© 2014, LinkedIn Corporation. 2029 Stierlin Ct. Mountain View, CA 94043, USA