[R] Underscore and ESS

Martin Maechler maechler at stat.math.ethz.ch
Fri Apr 2 16:42:15 CEST 2004


>>>>> "GB" == Göran Broström <gb at stat.umu.se>
>>>>>     on Fri, 2 Apr 2004 16:29:00 +0200 writes:

    GB> This is a question that I should have sent to 'ess-help', but I
    GB> take my chances...

(yes, you should have..)

    GB> In 'NEWS' (1.9.0) I read the good news

    GB> o   Underscore '_' is now allowed in syntactically valid names, and
    GB> make.names() no longer changes underscores.  Very old code
    GB> ...

    GB> but when I try it in emacs (ESS 5.1.24), my '_' are changed to ' <-  '!
    GB> What can I do? Upgrade to a beta version of ESS? (I want to continue 
    GB> using ESS!)

o Yes, upgrading to ESS-5.2.0beta would help:
  There you type "_"   *twice* to get a single "_" inserted

o OTOH, in all versions of ESS (and Emacs), you can type
  "C-q _"  which means ``quote _ '', i.e. ``literal '_'''

  (and this applies to all other emacs keys in all emacs modes)

Regards,
Martin




More information about the ESS-help mailing list