[ESS] [R] is it safe to replace every "<-" by "=" in R code?

Richard M. Heiberger rmh at temple.edu
Mon Jan 14 03:31:54 CET 2008


Thank you Mark for the nice comments about ESS.  The answer to your
questions,
as to all questions in emacs, is "Yes".

For specifics,
Type _ twice, and it will become an underscore.  See
C-h k _
For the full help page.

Highlighting a region is easy with the keyboard.
First, on general principles, add the line
(transient-mark-mode 1)
To your ~/.emacs file

Place the cursor where you want it and then
C-S-@ to set the mark.
Move the cursor somewhere else and then the region between the mark and
point will be highlighted

-----Original Message-----
From: ess-help-bounces at stat.math.ethz.ch
[mailto:ess-help-bounces at stat.math.ethz.ch] On Behalf Of
markleeds at verizon.net
Sent: Sunday, January 13, 2008 09:17 PM
To: Jonathan Baron
Cc: ess-help at stat.math.ethz.ch
Subject: Re: [ESS] [R] is it safe to replace every "<-" by "=" in R code?

>From: Jonathan Baron <baron at psych.upenn.edu>
>Date: 2008/01/13 Sun PM 07:46:04 CST
>To: "Richard M. Heiberger" <rmh at temple.edu>
>Cc: r-help at stat.math.ethz.ch, 'Nasser Abbasi' <nma at 12000.org>
>Subject: Re: [R] is it safe to replace every "<-" by "="

Hi Jonathan: I realize that your comment was to the R-list but, since you
brought that up, do you know how to actually type a real underscore in ESS
for cases where you want to, for example, type seq_along ? I just started
using ESS a few weeks ago and it's great but I noticed that recently and I
had to comment a line, make the seq_along on it and then copy it somwhere
else.  

also, is there a way to shade a region of code 
( for  when you want to run a region ) without using the mouse ?  I like
avoiding the mouse if it's possible
?

Thanks to Sundar and Spencer for getting me into ESS
and of course to the people who built ESS !!!!
It's quite neat and I probably only know 1% of it.

                                  Mark

                        




>I think it is worth pointing out that, if you use ESS with (X)emacs,
>" <- " (with spaces) is produced when you type "_".  It requires only two
>keystrokes (shift and -), and the spaces are done for you. The = sign
>requires three because you need to type the spaces on each side.
>
>Jon
>
>______________________________________________
>R-help at r-project.org mailing list
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
>and provide commented, minimal, self-contained, reproducible code.

______________________________________________
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