[ESS] ess beginner issue: evaluate line/region commands

Erik Iverson iverson at biostat.wisc.edu
Mon Dec 15 04:02:08 CET 2008



Markus Triska wrote:
> LeCzar <sirnixu at gmail.com> writes:
> 
>> I am trying to use ess together with R, but I am used to simple
>> commands for running a line (or region) from the script. The C-c M-j
>> command seems inconvenient to me regarding two things:
> 
> I agree that C-c M-j is inconvenient, and by the way, M-j is distinct
> from RET (= C-m) at least on OSX. Speaking of bindings, I find it very
> surprising that `ess-eval-chunk' has no key binding at all by default:
> It is probably the ESS function that I use the most in noweb-files, and
> I suggest as a new default a mnemonic binding like "C-c C-c" for it.

When submitting lines from a .R file to an R process buffer, C-c C-c is 
currently bound to:

"C-c C-c runs the command ess-eval-function-or-paragraph-and-step,
which is an interactive Lisp function in `ess-inf.el'.

(ess-eval-function-or-paragraph-and-step vis)

Send the current function if M-x point is inside one, otherwise the current
paragraph other to the inferior ESS process.
Prefix arg vis toggles visibility of ess-code as for `ess-eval-region'."

I find this my preferred way to submit code to the inferior R process. 
However, I do not see this in the manual? Am I mistaken?

Erik




More information about the ESS-help mailing list