[ESS] Tiny trouble in color after loading mgcv

David Nelson davidonelson at mac.com
Tue Mar 2 17:46:27 CET 2010


It's a pain, but I just do:

library(mgcv); detach(2); library(mgcv)

and the problem undoes itself.

d.
---
David Nelson
davidonelson at mac.com




On Mar 2, 2010, at 8:20 AM, Martin Maechler wrote:

>>>>>> "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.
>>> 
>>>> library(mgcv)
>>> 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.
>>> 
>>> --
>>> Susumu
> 
>    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
> and then
>  `foo bar`
> instead of 
>  get("foo bar")
> 
> 
>    RoSp> In the meantime, enter  something like #` and everything should be fine.
> 
> yes. Or   global-replace ` by '  (in such cases, only, not always!).
> 
> ______________________________________________
> ESS-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help



More information about the ESS-help mailing list