[ESS] Fwd: ess-timeout

Meinhard Ploner meinhardploner at gmx.net
Tue Apr 4 16:06:08 CEST 2006


Thanks to Richard and Martin!!

I load all the objects (~1000) in a loop like:
for(file in dir(..., pattern = "\\.R$", full.names=TRUE))
               source(file)
as they are *.R - files. This is slow but i don't like *.rda.

the multiplier on ess-loop-timeout worked fine, thanks!

Meinhard


On Apr 4, 2006, at 3:37 PM, Martin Maechler wrote:

>>>>>> "RMH" == Richard M Heiberger <rmh at temple.edu>
>>>>>>     on Tue, 4 Apr 2006 08:52:18 -0400 writes:
>
>     RMH> I would handle that situation in R, not in emacs.  I
>     RMH> suggest you make a .RData consisting of the objects
>     RMH> that you load.  Then attach that directory.  It will be
>     RMH> very fast.
>
>     RMH> open R run your .First close R and save the image
>>> From emacs dired, move the .RData somewhere else, say
>>> myfunctions/.RData
>     RMH> Start R with a new .First containing the line
>     RMH> attach("myfunctions/.RData")
>
> I agree with Rich that this will help you save time much better.
>
> However, to still answer your original question,
> add something like
>
> (add-hook
>  'inferior-ess-mode-hook
>  '(lambda()
>     (message "inferior-ess-mode-hook: Increasing ess-loop-timeout..")
>     (setq ess-loop-timeout (* 2 ess-loop-timeout))))
>
> to your ~/.emacs.
> Replace '2' above by the appropriate factor you'd like.
>
> Martin
>
>
>     RMH> ---- Original message ----
>>> Date: Tue, 4 Apr 2006 14:41:11 +0200 From: Meinhard
>>> Ploner <meinhardploner at gmx.net> Subject: [ESS]
>>>  ess-timeout
>
>>> Another question: when I start R into emacs .First()
>>> loads a huge amount of objects, which is my
>>> intention. But this process gives me always the warning :
>>> Timeout waiting for prompt. Check inferior-ess- prompt or
>>> ess-loop-timeout.
>>>
>>> Is there some remedy for that?
>
>     RMH> ______________________________________________
>     RMH> ESS-help at stat.math.ethz.ch mailing list
>     RMH> https://stat.ethz.ch/mailman/listinfo/ess-help
>




More information about the ESS-help mailing list