[ESS] distinguish busy from non-busy waiting
Andreas Leha
@ndre@@@|eh@ @end|ng |rom med@un|-goett|ngen@de
Thu Nov 26 15:30:34 CET 2015
Hi Vitalie,
Thanks for following up on this!
> Your definition means busy means that CPU resources are used.
Well, yes and no. I am using this (manually by looking at 'top'). But
I think this is only a surrogate for whether the prompt is still 'waiting'
for input or not.
> I think this is
> doable (on linux,mac at least). You can monitor PID of R's process for CPU usage
> periodically.
So, you are basically suggesting that emacs should look at top for me,
right? That would be possible, I guess. But still, that might give
wrong answers if R has to wait for I/O a lot, for instance.
Best,
Andreas
>
> The current implementation of busy/not-busy relies on prompts and it's quite
> flawed indeed.
>
> Vitalie
>
>>> On Thu, Nov 26 2015 11:55, Andreas Leha wrote:
>
>> Hi all,
>
>> Is there a way to tell from ess' GUI whether R is busy doing something
>> or whether R is waiting for the completion of the user input?
>
>> Consider this example file
>
>> Sys.sleep(
>> 10)
>
>> Sys.sleep(
>> 10
>
>> If I do `ess-eval-paragraph-and-step' on one after the other I get
>
>> ,----
>> | >
>> | +
>> `----
>
>> from the first and
>
>> ,----
>> | >
>> | + +
>> `----
>
>> from the second.
>
>> In both cases there is a spinning wheel in the mode line.
>
>> So, the number of '+' signs seems to be the only visible difference.
>> Counting the plus sings is not an option for real examples, of course.
>
>> Hence my question: Is there a way to immediately tell from the interface
>> whether the command is complete?
>
>> I quite often wait in vain due to a missing ')' and only a glance at the
>> output of 'top' or similar will help here.
>
>> Thanks,
>> Andreas
>
>> ______________________________________________
>> ESS-help using r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/ess-help
>
> ______________________________________________
> ESS-help using r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help
More information about the ESS-help
mailing list