[ESS] from emacs region to R

A.J. Rossini blindglobe at gmail.com
Sat Mar 25 10:28:00 CET 2006


Then I'm guessing you aren't in an R function.  After all, it's send
FUNCTION  (i.e. having cursor in the middle of something like:

MyFunctionName <- function(x) {

   code
    cursor here
   mode code
}

)
and if you aren't in a function, then the whole buffer looks like a
function (and gosh, this isn't MATLAB :-).  There are corresponding
other keystrokes,  C-h b  (list of bindings) should help find them.


On 3/25/06, Fred J. <phddas at yahoo.com> wrote:
> emacs 21.4.1, R 2.2.1, ESS 5.2.12-1 debian testing kernel 2.6.15
>  when I am in a .R file and hit C-c M-r (hoping to send the line and switch to the R buffer), it sends every thing (include comments and all) from point to end of file to the R buffer.
>
> Kasper Daniel Hansen <khansen at stat.Berkeley.EDU> wrote: Of course
>
> C-c C-r to send a region
> C-c C-f to send a function (if the point is inside a function)
> C-c C-n to send a line. Very useful, since it also moves the point
> one line down.
>
> There are also variants like
> C-c M-r to send a function and switch buffer to the R buffer
>
> /Kasper
>
> On Mar 24, 2006, at 10:37 PM, Fred J. wrote:
>
> > dear ess users
> >
> >  I wounder if I can send a line or a region from my emacs buffer to
> > my R buffer to be evaluated, something like when hitting r when you
> > are in the help buffer for R. so that I don't have to copy and
> > paste the region "where I have say a function" to the R prompt.
> >
> >  thank you
> >
> >
> > __________________________________________________
> >
> >
> >
> >  [[alternative HTML version deleted]]
> >
> > ______________________________________________
> > ESS-help at stat.math.ethz.ch mailing list
> > https://stat.ethz.ch/mailman/listinfo/ess-help
>
>
>
>
> ---------------------------------
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> ESS-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help
>


--
best,
-tony

blindglobe at gmail.com
Muttenz, Switzerland.
"Commit early,commit often, and commit in a repository from which we can easily
roll-back your mistakes" (AJR, 4Jan05).




More information about the ESS-help mailing list