[ESS] Tiny trouble in color after loading mgcv
maechler at stat.math.ethz.ch
Tue Mar 2 17:20:42 CET 2010
>>>>> "RoSp" == Rodney Sparapani <rsparapa at mcw.edu>
>>>>> on Tue, 02 Mar 2010 08:39:33 -0600 writes:
RoSp> On 03/ 2/10 03:04 AM, Susumu Tanimura wrote:
>> Hi there,
>> ESS has very nice syntax highlighting. After loading mgcv package, the
>> following message appear in *R* buffer.
>> This is mgcv 1.6-1. For overview type `help("mgcv-package")'.
>> Then, all characters in *R* buffer are colored same (pink-like color)
>> subsequent to "`", that is, syntax highlighting is virtually killed.
>> It is tiny problem but nags at me. Asking the author of mgcv to replace
>> "`" with "'" could be a solution. But if someone has advice or
>> solution which I can do by myself, please show me.
>> Thank you in advance.
RoSp> I see that too. The problem is that ` is considered a string separator
RoSp> for some reason. Is that really necessary?
Yes, definitely !!
That's been an addition to the R "language" many months ago.
e.g. -- non-useful here, but showing the principle:
"foo bar" <- 12
RoSp> In the meantime, enter something like #` and everything should be fine.
yes. Or global-replace ` by ' (in such cases, only, not always!).
More information about the ESS-help