Hi Jose,
That's excellent! Numbers are now recognized and highlighted adequately!
There is, however, a subtle point I would like to comment: the way Numbers (i.e. integer values) are distinguished from Floats (i.e. real values) for highlighting, is slightly different from the way R does interpret numeric values in the code when assigning to variables. In R, a code with a number without decimal, e.g. "12345", will be assigned as a "numeric" class, i.e. ~float; to be recognized as integer, the user must add the "L" suffix: "12345L". But in Tinn-R, values like 12345 are interpreted and highlighted as "Number".
In current version of Tinn-R, all of these are highlighted as "Float": 1E5, 1.234, 1.234E6, 1.2e-10, 1.234e+10... and it's right.
But the following are highlighted as "Number": 1, 123, 0, while they should rather be "Float" (because "numeric" in R).
Could you modify the criteria for Number vs. Float for the R Highlighters in Tinn-R, so that it follows the same interpretation as in R? This way, I'll be able to locate integer values within my codes with an easily visible highlighter such as with the Underlined option.
You may even add a third category for highlighting numeric values in Tinn-R Editor: that would be a "Unclear integer / float", for values with no decimal, nor any "L" suffix. This would help "rigorous" programmers to locate the parts of the code where the type of number is unclear: for a float, the user should change for example from 123 to 123.0... whereas for an integer value, he would modify 123 to 123L. I would use a red color for hightlighting such numbers in my code, although the default should remain "same appearance for all numbers, real / integer / unclear", to keep it simple for standard users.
Thanks again.
Marc