[ESS-bugs] Small mess in *R* buffer after M-x R

Richard M. Heiberger rmh at temple.edu
Mon Feb 5 23:26:41 CET 2007


> if (!exists("baseenv", mode="function")) baseenv <- function() NULL
options(STERM=iESS', editor='emacsclient')
> >

That is a misalignment of the prompt with the commands,
since we send over two initialization commands
with no delay time between them.  Not a problem and the misalignment
may be completely ignored.

The first line is a retrofit, so ESS will work with older versions of R,
before the baseenv function was invented.

The options() line sets two options.
STERM is set to 'iESS' (I hope the missing left quote is a typo in your email).
That way you can write code that says
  if (options("STERM") == 'iESS') do.something.that makes.sense.in.ESS
  else                            do.something.else
If you use this line in your code and occasionally run it outside of ESS,
then you will need to define the option yourself.  See the ESS documentation
in ess/doc/html/ess.html and search for
         options(STERM="iESS") 

The editor option meams that the  command  edit(any.object) will
open an emacs buffer instead of the non-emacs default editor on your computer.

Rich




More information about the ESS-bugs mailing list