[ESS] distinguish busy from non-busy waiting
Vitalie Spinu
@p|nuv|t @end|ng |rom gm@||@com
Thu Nov 26 15:12:13 CET 2015
Your definition means busy means that CPU resources are used. I think this is
doable (on linux,mac at least). You can monitor PID of R's process for CPU usage
periodically.
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
More information about the ESS-help
mailing list