Progress package

Pierre de Villemereuil pierre.de.villemereuil at mailoo.org
Tue Nov 27 15:28:42 GMT 2018


Hi all,

If you have time to look at this PR regarding this issue with the "progress" package and tell me if you see anything wrong, I'd be grateful:
https://github.com/r-lib/progress/pull/76

Cheers,
Pierre.

Le Saturday, 3 November 2018, 17:48:43 CET Thomas Friedrichsmeier a écrit :
> Hi,
> 
> On Sat, 03 Nov 2018 13:04:44 +0100
> Pierre de Villemereuil <pierre.de.villemereuil at mailoo.org> wrote:
> > The dev is asking whether there is a way to detect RKWard. Is there?
> 
> well, as far as I can see, the function in question is
> progress:::is_supported. That checks if the output stream isatty().
> (Not sure, whether this even works on Windows, but so what).
> 
> Perhaps a better check would be something like:
> 
>   (is_stdout(stream) || is_stderr(stream)) && interactive()
> 
> Untested, but might work without adding a special case for every single
> GUI out there.
> 
> (I suppose the main intention of the check is to avoid writing progress
> bars to a file. But in that case, R is either not interactive() -
> esp. when there is a shell-redirection - or a sink() is in place.
> progress:::is_stdout() seems to check for the latter, already).
> 
> Regards
> Thomas
> 




More information about the rkward-devel mailing list