[ESS] help in R 2.10 Windows

Ross Boylan ross at biostat.ucsf.edu
Wed Nov 4 22:53:16 CET 2009


On Wed, 2009-11-04 at 22:15 +0100, Martin Maechler wrote:
> On Wed, Nov 4, 2009 at 22:05, Ross Boylan <ross at biostat.ucsf.edu> wrote:
> > On Wed, 2009-11-04 at 12:16 -0800, Ross Boylan wrote:
> >> On Wed, 2009-11-04 at 10:39 +0100, Martin Maechler wrote:
> >> >  > options(chmhelp = FALSE, help_type = "text")
> >> >  > .help.ESS <- help
> >> >  > options(STERM='iESS', editor='gnuclient.exe')
> >> >
> >> >  ----------------------------------------------------------------
> >> >
> >> > Note the last three lines of ESS-auto-generated R code.
> >> >
> >> > Don't you get these?
> >> I do not.
> >> Ross
> >>
> >>
> > I put this in my .emacs
> > (setq ess-loop-timeout 200000000)
> > but it doesn't seem to have affected the variable after I start, which
> > still shows as 2000000 (I multiplied x 100).
> >
> > Oh, maybe I need to put the setting in some kind of mode-specific hook?
> 
> Yes, either that [inferior-ess-mode-hook] , or -- simpler --
That did work.  It stopped the message about timeout, and it resulted in
the expected commands being stuffed to the buffer.

I did this.  Is there a more elegant way, i.e., without the lambda?
(add-hook 'inferior-ess-mode-hook (lambda ()
   (setq ess-loop-timeout (* 100 2000000))))

emacs used all of one CPU while it was waiting for the command; maybe
some of the timeout arguments in accept-process-output in ess-inf.el
would be gentler?

Does this reset my timeout period generally, i.e. for subsequent
commands?  It's probably excessive for that.

Startup of the R subprocess is taking c. 40 seconds.  Most of that time
seems to be reading my .RData file; at 9MB it doesn't seem that large.
As alway, I suspect the virus scanner; unfortunately it is locked down
and I can't change it.

> (setq ess-S-loop-timeout (* 100 2000000))
That didn't work.
The local value (in a .R file) of ess-loop-timeout (not
ess-S-loop-timeout) was 2e6, even though the global value was 2e8.

It's not clear to me that any changes in ESS's behavior are in order.

Ross



More information about the ESS-help mailing list