[ESS] How to tell if R is ready after ess-eval-*?

Rodney Sparapani rsparapa at mcw.edu
Thu Jul 7 17:56:40 CEST 2011


Vitalie Spinu wrote:
> Hi Ulrich,
>
> I've just implemented the animated indicator of process status in
> ess-tracebug (http://code.google.com/p/ess-tracebug/#Miscellaneous_enhancements)
>
> Technically it is not always possible to tell if the process is busy. But in
> most of the cases, it works smoothly.
>
> Particularly if you send your input with 'ess-eval-visibly-p' being 't' it
> will always work.
>
> It will also always work with one line input.
>
> With several commands input you better spread your commands for several
> lines or enclose with {...}:
>
> for(i in 1:5)
>     Sys.sleep(.5)
> for(j in 1:10) Sys.sleep(.4)
>
> instead of
>
> for(i in 1:5) Sys.sleep(.5)
> for(j in 1:10) Sys.sleep(.4)
>
> Personally I don't see how to improve on what is already there.
>
> Enjoy,
> Vitalie
>   
Hi Vitalie:

Very nice!  However, I see the same behavior for those 2 blocks of
code.  Or is it so subtle that I didn't notice?  Thanks.

-- 
Rodney Sparapani       Center for Patient Care and Outcomes Research
Sr. Biostatistician               http://www.mcw.edu/pcor
4 wheels good, 2 wheels better!   Medical College of Wisconsin (MCW)
WWLD?:  What Would Lombardi Do?   Milwaukee, WI, USA



More information about the ESS-help mailing list